namespaceml-chiclets
Source: directives/
angular element directive; displays chiclets.
attributes:
activeFacets: a reference to theactiveFacetsproperty of MLSearchContexttoggle: a reference to a function that will select or clear facets based on their state. Invoked withfacet(name) andvalueparameters. This function should invokemlSearch.toggleFacet(facetName, value).search()template: optional. A URL referencing a template to be used with the directive. If empty, the default bootstrap template will be used.truncate: optional. The length at which to truncate the facet display. Defaults to20.
Example:
<ml-chiclets active-facets="ctrl.mlSearch.activeFacets" toggle="ctrl.toggleFacet(facet, value)"></ml-chiclets>