phu wrote:
> hi,
>
> i'd like to highlight the string found in items when using exhibit's
> facet textsearch. is there a way to do that?
>
One way is to change the text formatter. Look in
http://static.simile.mit.edu/exhibit/api-2.1.0/scripts/ui/formatter.js
Find
Exhibit.Formatter._TextFormatter.prototype.format
That's the function you want to override. All text formatting in lens
templates goes through that function.
Also, assign an ID to the text search facet like this
<div ex:role="facet" ex:facetClass="TextSearch"
id="the-text-search-facet"></div>
so that you can retrieve its query
window.exhibit.getComponent("the-text-search-facet")._text
David
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"SIMILE Widgets" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/simile-widgets?hl=en
-~----------~----~----~----~------~----~------~--~---