Opened 12 years ago
Closed 12 years ago
#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: | ||
Blocked by: | Blocking: |
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 (4)
comment:1 Changed 12 years ago by
comment:2 Changed 12 years ago by
Status: | new → 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:3 Changed 12 years ago by
Priority: | minor → blocker |
---|
comment:4 Changed 12 years ago by
Resolution: | → fixed |
---|---|
Status: | open → closed |
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