Using jQuery selectors comes to mind.  Exhibit facets have a class for the
full div as well as each value.  Although I haven't tried it, it would be
something like one of these:  (syntax could be way off...)

$("div.exhibit-facet:contains('Dead')").css("color", "red");
$("div.exhibit-facet-value:contains('Dead')").css("color", "red");
$("a.exhibit-facet-value-link:contains('Dead')").css("color", "red");
$("a.exhibit-facet-value-link[title=Dead]").css("color", "red");
$("a.exhibit-facet-value-link[title=Dead]").addClass("myclassname");


You could also create your own divs outside of each facet to differentiate
among them.  It gets tricky but there are lots of possibilities.

- John

**************************************************
John Callahan, Geospatial Application Developer
Delaware Geological Survey, University of Delaware
URL: http://www.dgs.udel.edu
**************************************************



On Wed, Mar 17, 2010 at 10:37 AM, Matt Gilbert <[email protected]> wrote:

> is there a way to add classes to exhibit-facet-value divs based on the
> particular value? So, for example, something now renders as:
> <div class="exhibit-facet-value" title="Dead"> ... </div>
>
> renders as
> <div class="exhibit-facet-value exhibit-facet-value-dead"
> title="Dead"> ... </div>
>
> or
> <div class="exhibit-facet-value exhibit-facet-value-1"
> title="Dead"> ... </div>
>
> with the number being always the same for that title? This would allow
> for facet values to be color-coded, etc.
>
>
> --
> 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]<simile-widgets%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/simile-widgets?hl=en.
>
>

-- 
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.

Reply via email to