Opened 9 years ago

Closed 9 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:2 Changed 9 years ago by Scott González

Status: newopen

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 9 years ago by Scott González

Priority: minorblocker

comment:4 Changed 9 years ago by Scott González

Resolution: fixed
Status: openclosed

Autocomplete: Added response event. Fixes #6777 - Autocomplete callback when search is complete.

Changeset: e7991e33f3c5d20d6efdb18654859175ef5cac68

Note: See TracTickets for help on using tickets.