Skip to main content

Bug Tracker

Side navigation

#3267 closed feature (invalid)

Opened August 20, 2008 09:49AM UTC

Closed October 12, 2009 11:56PM UTC

[autocomplete] added dropdown button support, setData function, "n results omitted" message support

Reported by: jkytomak Owned by:
Priority: minor Milestone: 1.3
Component: plugin Version: 1.2.6
Keywords: autocomplete Cc:
Blocked by: Blocking:
Description

I added some features to the autocomplete 1.0.2 component that were needed by my project. The features are:

"Dropdown button"

If option dropdownImgSrc is given, the image defined by it will be inserted next to the input field that, when clicked, will open the autocomplete result list with empty search params. Makes autocomplete more usable when the input might only hold few items but might hold many as well.

setData function

Function to reset the local data used by Autocomplete if it needs to be updated after initialization.

"N results omitted" message support

Autocomplete only shows options.max items on the result list, even if there are more results. This may be confusing in some cases, as there is no cues that some results are missing from the list. Added option omittedResultsMsg that, if defined and results > options.max, will be shown in the bottom of the autocomplete list. For example

omittedResultsMsg: "({0} results omitted - refine your search)"

will show message e.g. "(50 results omitted - refine your search)".

Attachments (1)
Change History (2)

Changed August 20, 2008 10:16AM UTC by jkytomak comment:1

Sorry, added this ticket twice by accident. Please remove this one, #3268 has same info.

Changed October 12, 2009 11:56PM UTC by dmethvin comment:2

resolution: → invalid
status: newclosed

This is not a jQuery core bug. Please report plugin bugs to the plugin's author, or ask on the jQuery forums. jQuery UI bugs should be reported on the UI bug tracker, http://dev.jqueryui.com .