When a facet is initialized (using Exhibit.FacetUtilities.constructFacetItem , see scripts/util/ facets.js ) it has functions "onSelect" and "onSelectOnly."
Select - is executed when you filter using the check boxes OnSelectOnly - is executed when you click on the name of the text you wish to filter by You can add your own code to these. For example, if you wanted to apply this to list facets, go to script/ui/facets/list-facet.js , and find the functions "onSelect" and "onSelectOnly" in Exhibit.ListFacet.prototype._constructBody . Also note that you will need to set bundle = false in order for you to make exhibit run the code. In the script tag to exhibit of your html, append "?bundle=false" to the end of your src. -Rob On Jul 20, 7:41 pm, Matt Gilbert <[email protected]> wrote: > does anyone know a way to bind a javascript event to the filter links, > so that whenever filters are added or removed a custom bit of > javascript is executed? --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
