A Polymer Element providing a way to view and remove selected facets in a breadbox-item element.
Example:
var facets = {
city: {
'New York, NY': {
category: 'City',
enabled: true,
text: 'New York, NY'
}
}
};
<selected-facets-display
facet-key="city"
facets="{{facets}}">
</selected-facets-display>
<selected-facets-display>
provides the following custom properties and mixins for styling:
Custom property | Description | Default |
---|---|---|
--selected-facet-icon-color |
The color of the icon(s). | --paper-grey-900 |
--selected-facet-icon-hover-color |
The color of the close icon on hover. | --paper-red-900 |
--selected-facet-item-style-mixin |
The custom style mixin of the items. | none |
--selected-facet-text-color |
The text color of the items. | --paper-grey-900 |
Dependencies are installed using Bower:
npm install -g bower
bower install
Tests are run using web-component-tester:
npm install -g web-component-tester
wct
Demonstration and documentation are viewed using polyserve:
npm install -g polyserve
polyserve