filter String (default: "startswith")

The filtering method used to determine the suggestions for the current value. The default filter is "startswith" - all data items which begin with the current widget value are displayed in the suggestion popup. The supported filter values are startswith, endswith and contains.

Example - set the filter

<input id="autocomplete" />
  filter: "contains",
  dataSource: {
    data: ["One", "Two"]
In this article