A function that is used to find the next match index within a list of values by comparing the start values ignoring case.
If a match can not be found from the search string,
-1 will be returned.
The search value is self-matchable by default, but it can be omitted by
isSelfMatchable argument. This will make a self-match return
The current search value
A list of values to search within
The index within the values list to start the search from
Boolean if the current index can be included in the search
A function that will get a string value from each item. The default implementation will:
valueKeyon an object is a function).
The list of items that should be searched whenever the user types a letter.
A required change event handler that will be called whenever a user types a
letter and it causes a new item to be "found". This should normally be
something that either updates the
aria-activedescendant id to the new
found item's id or manually focus the item's DOM node.
onKeyDown event handler that should be merged with the search
Note: This will be called before the search functionality is triggered.
The amount of time that a "search" value should be kept before resetting. The default value works for most cases, but it might be nice to configure it based on your use case.
The current index that should be "focused" due to a keyboard search. This
should be updated whenever the
onChange callback is fired.
The key to use to get a value string if the item is an object.
Generated using TypeDoc