TarekRaafat / autoComplete.js

Simple autocomplete pure vanilla Javascript library.
https://tarekraafat.github.io/autoComplete.js
Apache License 2.0
3.95k stars 239 forks source link

How to use => search(query, record, options) API option #337

Closed Ezra-Siton-UIX closed 2 years ago

Ezra-Siton-UIX commented 2 years ago

https://tarekraafat.github.io/autoComplete.js/#/configuration?id=searchquery-record-options

I did not find any example.

autoCompleteJS.search(query, record, options);

What the purpose of this function?

folknor commented 2 years ago

It returns a substring of record that matches query, if any. If not, it returns nothing.

Ezra-Siton-UIX commented 2 years ago

Thanks.