-
create
-
Type:
- autocompletecreate
This event is triggered when autocomplete is created.
-
search
-
Type:
- autocompletesearch
Before a request (source-option) is started, after minLength and delay are met. Can be canceled (return false), then no request will be started and no items suggested.
-
open
-
Type:
- autocompleteopen
Triggered when the suggestion menu is opened.
-
focus
-
Type:
- autocompletefocus
Before focus is moved to an item (not selecting), ui.item refers to the focused item. The default action of focus is to replace the text field's value with the value of the focused item, though only if the focus event was triggered by a keyboard interaction. Canceling this event prevents the value from being updated, but does not prevent the menu item from being focused.
-
select
-
Type:
- autocompleteselect
Triggered when an item is selected from the menu; ui.item refers to the selected item. The default action of select is to replace the text field's value with the value of the selected item. Canceling this event prevents the value from being updated, but does not prevent the menu from closing.
-
close
-
Type:
- autocompleteclose
When the list is hidden - doesn't have to occur together with a change.
-
change
-
Type:
- autocompletechange
Triggered when the field is blurred, if the value has changed; ui.item refers to the selected item.