On Mon, Oct 12, 2009 at 12:27 PM, mleden <[email protected]> wrote:
I'd like to have my own link to reset ("clear") all of the filters
displayed on my Exhibit page. Is there a simple way to do that?
For each facet of id/name "id-name-of-facet"
var fct = exhibit.getComponent("id-name-of-facet");
if (fct.hasRestrictions()) {
fct.clearAllRestrictions();
}
Text search facets will also need to be cleared independently...
Niels
http://nielsmayer.com
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---