ivirabyan / jquery-mentions

Adds mentioning support to your text fields.
http://ivirabyan.github.io/jquery-mentions/
MIT License
114 stars 49 forks source link

Adding a feature to have a non-selectable heading to the ui-list #32

Closed roshandevadiga closed 9 years ago

roshandevadiga commented 9 years ago

Modified the code to allow to have a heading for the UI list, to sub-categorize the list.

Example : Response : [{value:"I'm Following", is_header: true},{"uid":1,"value":"User1"},{"uid":2,"value":"User2"},{"uid":3,"value":"User3"},{value:"Other users", is_header: true},{"uid":4,"value":"User4"},{"uid":5,"value":"User5"}]

UI list will look like follow

ivirabyan commented 9 years ago

I think it would be better to allow user to pass his own subclass of jquery autocomplete widget as an option. Doing so we'd make a more generic solution.

ivirabyan commented 9 years ago

Added option widget, which allows you to provide customized implementation of autocomplete widget

harsharora04 commented 6 years ago

How do I use this widget option?