Skip to main content

Search and Top Navigation

#8211 closed bug (wontfix)

Opened March 23, 2012 09:58AM UTC

Closed March 23, 2012 11:46AM UTC

Including delete feature in Autocomplete

Reported by: juzerali Owned by:
Priority: minor Milestone: 1.9.0
Component: ui.autocomplete Version: 1.8.18
Keywords: Cc:
Blocked by: Blocking:
Description

Can autocomplete have a feature such that as a user presses delete on a focused suggestion, the element is deleted from the array and a "delete" event is fired on autocomplete or the corresponding input element.

Also inside each 'li' element of suggestion panel, a delete image can be appended such that clicking on that will produce same effect as pressing the delete button.

While creating the autocomplete, the author can provide a boolean option 'deletable' and an option deleteImage which can be shown as delete image (defaulting to jQuery delete button)

Attachments (0)
Change History (2)

Changed March 23, 2012 10:01AM UTC by juzerali comment:1

Can autocomplete have a feature such that as a user presses delete on a focused suggestion, the element is deleted from the list and from the source array and a "delete" event is fired on autocomplete element.

Also inside each 'li' element of suggestion panel, a delete image can be appended such that clicking on that will produce same effect as pressing the delete button.

While creating the autocomplete, the author can provide a boolean option 'deletable' and an option deleteImage which can be shown as delete image (defaulting to jQuery delete button)

Changed March 23, 2012 11:46AM UTC by scottgonzalez comment:2

resolution: → wontfix
status: newclosed

This is not a common feature. You should build this yourself. Also, note that this adds a lot of complexity if you want to support anything other than array sources.