dataField property

dynamic dataField
read / write

index field(s) to be connected to the component’s UI view.

It accepts an List<String> in addition to <String>, which is useful for searching across multiple fields with or without field weights.

Field weights allow weighted search for the index fields. A higher number implies a higher relevance weight for the corresponding field in the search results.

You can define the dataField property as a List<Map> of to set the field weights. The object must have the field and weight keys.

Implementation

dynamic dataField;