meteor-autocomplete icon indicating copy to clipboard operation
meteor-autocomplete copied to clipboard

Highlight matched substrings

Open dandv opened this issue 11 years ago • 1 comments

image

Inserting a <span class="matched"> around matched substrings should do.

dandv avatar May 15 '14 10:05 dandv

I think it should be the responsibility of the template to do this. It can grab the matched string with {{../getFilter}} and render as necessary. Creating and modifying <span> decorators in a generalized way is not the responsibility of our code - in fact, the rendered template may not even have the matched string in it.

Once Blaze supports accessing parent contexts from helpers, this should be a lot easier for people to do.

mizzao avatar May 15 '14 15:05 mizzao