ivirabyan / jquery-mentions

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

Highlight matched text #57

Closed rept closed 8 years ago

rept commented 8 years ago

Hi,

Thx for your library, works really well. In the backend (through ajax) I'm matching results case-insensitive (by doing LOWER in DB). I noticed however that in the front end, it will only highligh matched substrings in bold if the case is exactly the same. Is there a way to change this?

Another minor question: is there a way to only trigger the request to the server after minimum 2 chars?

ivirabyan commented 8 years ago

I fixed this issue in master branch.

On second question: yes, you can set minLength option of jquery.autocomplete widget: mentionsInput({autocomplete: {minLength: 2}})