Opened 11 years ago

Closed 11 years ago

#8211 closed bug (wontfix)

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)

Change History (2)

comment:1 Changed 11 years ago by juzerali

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)

comment:2 Changed 11 years ago by Scott González

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.

Note: See TracTickets for help on using tickets.