[]
        
(Showing Draft Content)

C1.Web.Mvc.Fluent.AutoCompleteBaseBuilder-3.CustomHighlight

CustomHighlight Method

CustomHighlight(string)

Configurates CustomHighlight. Sets a custom highlight function for highlighting matched text.

Declaration
public virtual TBuilder CustomHighlight(string value)
Public Overridable Function CustomHighlight(value As String) As TBuilder
Parameters
Type Name Description
string value

The value.

Returns
Type Description
TBuilder

Current builder.

Remarks

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.