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

How to highlight words of two different data lists with different color in the same inputfield?

Open QaisarRajput opened this issue 10 years ago • 3 comments

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

QaisarRajput avatar Feb 21 '15 13:02 QaisarRajput

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.

ivirabyan avatar Feb 21 '15 21:02 ivirabyan

+1 I would need this too, for mentions for users and hashtags.

alexanderdickson avatar Sep 02 '15 07:09 alexanderdickson

yeah, two data-source would be very ideal

memmaina avatar Jun 28 '20 14:06 memmaina