jquery-mentions
jquery-mentions copied to clipboard
How to highlight words of two different data lists with different color in the same inputfield?
sumthing like
source1: [ {value: 'alex', uid: 'user:1'}, {value: 'andrew', uid: 'user:2'}, ], source2: [ {value: 'angry birds', uid: 'game:5'}, {value: 'assault', uid: 'game:3'} ],
i need to use one input field and want to highlight words from each list differently
Great Resource ! Thanks a Load
You can't have two different sources of data. You have to just merge them together into one source (you can use icons to distinguish them). Changing highlighting color for particular type of mention (game for example) is not supported now, but it would be great to implement this.
+1 I would need this too, for mentions for users and hashtags.
yeah, two data-source would be very ideal