filter String(default: "none")

The filtering method used to determine the suggestions for the current value. Filtration is turned off by default, and can be performed over string values only (either the widget's data has to be an array of strings, or over the field, configured in the dataTextField option). The supported filter values are startswith, endswith and contains.

Example - set the filter

<input id="dropdownlist" />
  dataSource: ["Chai", "Chang", "Tofu"],
  filter: "contains"
In this article