Skip to content

A Polymer Element providing a way to view and remove selected facets in a breadbox-item element.

License

Notifications You must be signed in to change notification settings

DigElements/selected-facets-display

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

selected-facets-display

A Polymer Element providing a way to view and remove selected facets in a breadbox-item element.

Example:

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>

Styling

<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

Dependencies are installed using Bower:

npm install -g bower
bower install

Testing

Tests are run using web-component-tester:

npm install -g web-component-tester
wct

Demonstration & Documentation

Demonstration and documentation are viewed using polyserve:

npm install -g polyserve
polyserve

About

A Polymer Element providing a way to view and remove selected facets in a breadbox-item element.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages