Ticket #6777 (closed enhancement: fixed)
Autocomplete callback when search is complete
| Reported by: | hoxworth | Owned by: | |
|---|---|---|---|
| Priority: | blocker | Milestone: | 1.9.0 |
| Component: | ui.autocomplete | Version: | 1.8.7 |
| Keywords: | Cc: | ||
| Blocking: | Blocked by: |
Description
The autocomplete component needs to have an event that is fired when a search is complete. The present "open" event is fired when there is data returned, but if no data is returned, there is no direct callback that can be utilized to modify UI state.
A use case for this would be separating the 'search' throbber user interface from the jQuery UI autocomplete component. In its current form, one can initiate a custom 'search' throbber at the beginning of a search using the 'search' event, but cannot stop the throbber once a search is complete unless data has been returned and the 'open' event has been called.
Change History
comment:2 Changed 2 years ago by scott.gonzalez
- Status changed from new to open
The new callback should be named response and should pass the content as data. The data should be able to be modified in the event/callback before being normalized.
comment:4 Changed 2 years ago by Scott González
- Status changed from open to closed
- Resolution set to fixed
Autocomplete: Added response event. Fixes #6777 - Autocomplete callback when search is complete.
Changeset: e7991e33f3c5d20d6efdb18654859175ef5cac68


Option added. See https://github.com/hoxworth/jquery-ui/commit/f5112be3a9d753ebc6f24df3a9dcf6b054620147