/wallcology-selector

bug selector for wallcology

Primary LanguageJavaScriptMIT LicenseMIT

wallcology-selector

An element providing a starting point for your own reusable Polymer elements.

Dependencies

Element dependencies are managed via Bower. You can install that via:

npm install -g bower

Then, go ahead and download the element's dependencies:

bower install

Playing With Your Element

If you wish to work on your element in isolation, we recommend that you use Polyserve to keep your element's bower dependencies in line. You can install it via:

npm install -g polyserve

And you can run it via:

polyserve

Once running, you can preview your element at http://localhost:8080/components/wallcology-selector/index.html,

To install in your app

bower install https://github.com/ltg-uic/wallcology-selector.git --save

Using it in code

    toggle-selector: side button/dropdown
    button-selector: all the choices for a toggle
    selected-items: listens for new selections buttons
    current-toggle: tells you which one is the current selected toggle

         <wallcology-selector  toggle-selectors="{{toggleSelectors}}" button-selectors={{buttonSelectors}}
                              max-selections="2" selected-items="{{selectedItems}}" current-toggle="{{currentToggle}}"></wallcology-selector>

Testing Your Element

Simply navigate to the /demo directory of your element to run its tests. If you are using Polyserve: http://localhost:8080/components/wallcology-selector/index.html