[]
Configurates CustomHighlight. Sets a custom highlight function for highlighting matched text.
public virtual TBuilder CustomHighlight(string value)
Public Overridable Function CustomHighlight(value As String) As TBuilder
| Type | Name | Description |
|---|---|---|
| string | value | The value. |
| Type | Description |
|---|---|
| TBuilder | Current builder. |
The function takes three parameters: the data item, the current query text, and the display text after DisplayMemberPath processing. It returns the HTML to display for that item. Matches may be wrapped in any element; wj-state-match is the built-in highlight class. The HTML is rendered as-is and is not sanitized, so the function must escape any text it did not create; unescaped input allows cross-site scripting (XSS) attacks. The default value is null.