jquery-tokeninput icon indicating copy to clipboard operation
jquery-tokeninput copied to clipboard

#336: added option to group tokens

Open tuxcanfly opened this issue 12 years ago • 1 comments

Hi,

This is related to #336. I've added two options: groupKey and itemGrouper:

groupKey is key in the token which will be used to group items by (default: 'group')

itemGrouper is a callable that can be used to group items if the group needs to be computed (default: null)

Also added a demo showing how to group results alphabetically.

Results will need to be sorted to avoid duplicate groups.

Thanks.

tuxcanfly avatar Oct 22 '13 11:10 tuxcanfly

Grouped tokens would be great. No need to use another token input plugin for that feature if tokeninput would support this.

Is there a chance to add this feature here?

pwFoo avatar Jan 04 '15 11:01 pwFoo