toggle-icon
toggle-icon is a custom element created with Polymer. It provides an extremely powerful and customizable switch that looks like a paper-icon-button.
[ This description is mirrored from README.md at github.com/fxedel/toggle-icon on 2019-05-22 ]
toggle-icon
What does this element?
toggle-icon
is a custom element created with Polymer. It provides an extremly powerful and customizable switch that looks like a paper-icon-button
. Use toggleIcon.checked
to get the toggle-icon's status in JavaScript. For more information about the usage, see the component page.
Here's a gif that shows five icon-toggle elements which are toggled by setting the checked
property programmatically:
Get the code
If you have bower installed, run:
npm install polymer-toggle-icon
Else, you can clone this repository.
Bugs / Feature requests
Feel free to open an issue if you notice something that can be improved.
Contributing to the code
- Fork the repository.
- Commit your changes to your fork.
- Create a pull request.
I really appreciate any contribution :)
License
The project is distributed under the MIT License, so you can use or modify the code as you like, you only need to name the author (e. g. by adding a link to the GitHub repository).
Links
Compatibility
Was this helpful? Need more help?
Leave a comment or a question below. You can also join
the chat on Discord or
ask questions on StackOverflow.
Version
Dependencies
- iron-checked-element-behavior#PolymerElements/iron-checked-element-behavior#^2.0.0
- paper-behaviors#PolymerElements/paper-behaviors#^2.0.0
- paper-icon-button#PolymerElements/paper-icon-button#^2.0.0
- paper-styles#PolymerElements/paper-styles#^2.0.0
- polymer#Polymer/polymer#^2.1.0
- Released
- 2018-01-19
- Maturity
- IMPORTED
- License
- MIT License
Compatibility
- Framework
- Polymer 2.0+
- Polymer 1.0+ in 1.1.2
- Browser
- Browser Independent
toggle-icon - Vaadin Add-on Directory
toggle-icon is a custom element created with Polymer. It provides an extremely powerful and customizable switch that looks like a paper-icon-button.Issue tracker
View on GitHub
Documentation
Online Demo
toggle-icon version 1.0.0
### Dependencies
PolymerElements/iron-checked-element-behavior#^1.0.0
* PolymerElements/paper-behaviors#^1.0.0
* PolymerElements/paper-icon-button#^1.0.0
* PolymerElements/paper-styles#^1.0.0
* Polymer/polymer#^1.0.0
toggle-icon version 1.0.1
### Dependencies
PolymerElements/iron-checked-element-behavior#^1.0.0
* PolymerElements/paper-behaviors#^1.0.0
* PolymerElements/paper-icon-button#^1.0.0
* PolymerElements/paper-styles#^1.0.0
* Polymer/polymer#^1.0.0
toggle-icon version 1.0.2
### Dependencies
PolymerElements/iron-checked-element-behavior#^1.0.0
* PolymerElements/paper-behaviors#^1.0.0
* PolymerElements/paper-icon-button#^1.0.0
* PolymerElements/paper-styles#^1.0.0
* Polymer/polymer#^1.0.0
toggle-icon version 1.0.3
### Dependencies
PolymerElements/iron-checked-element-behavior#^1.0.0
* PolymerElements/paper-behaviors#^1.0.0
* PolymerElements/paper-icon-button#^1.0.0
* PolymerElements/paper-styles#^1.0.0
* Polymer/polymer#^1.0.0
toggle-icon version 1.1
### Dependencies
PolymerElements/iron-checked-element-behavior#^1.0.0
* PolymerElements/paper-behaviors#^1.0.0
* PolymerElements/paper-icon-button#^1.0.0
* PolymerElements/paper-styles#^1.0.0
* Polymer/polymer#^1.0.0
toggle-icon version 1.1.0
### Dependencies
PolymerElements/iron-checked-element-behavior#^1.0.0
* PolymerElements/paper-behaviors#^1.0.0
* PolymerElements/paper-icon-button#^1.0.0
* PolymerElements/paper-styles#^1.0.0
* Polymer/polymer#^1.0.0
toggle-icon version 1.1.1
### Dependencies
PolymerElements/iron-checked-element-behavior#^1.0.0
* PolymerElements/paper-behaviors#^1.0.0
* PolymerElements/paper-icon-button#^1.0.0
* PolymerElements/paper-styles#^1.0.0
* Polymer/polymer#^1.0.0
toggle-icon version 1.1.2
### Dependencies
PolymerElements/iron-checked-element-behavior#^1.0.0
* PolymerElements/paper-behaviors#^1.0.0
* PolymerElements/paper-icon-button#^1.0.0
* PolymerElements/paper-styles#^1.0.0
* Polymer/polymer#^1.0.0
toggle-icon version 1.2
### Dependencies
* iron-checked-element-behavior#PolymerElements/iron-checked-element-behavior#^2.0.0
* paper-behaviors#PolymerElements/paper-behaviors#^2.0.0
* paper-icon-button#PolymerElements/paper-icon-button#^2.0.0
* paper-styles#PolymerElements/paper-styles#^2.0.0
* polymer#Polymer/polymer#^2.1.0
toggle-icon version 1.2.0
### Dependencies
* iron-checked-element-behavior#PolymerElements/iron-checked-element-behavior#^2.0.0
* paper-behaviors#PolymerElements/paper-behaviors#^2.0.0
* paper-icon-button#PolymerElements/paper-icon-button#^2.0.0
* paper-styles#PolymerElements/paper-styles#^2.0.0
* polymer#Polymer/polymer#^2.1.0
toggle-icon version 1.2.1
### Dependencies
* iron-checked-element-behavior#PolymerElements/iron-checked-element-behavior#^2.0.0
* paper-behaviors#PolymerElements/paper-behaviors#^2.0.0
* paper-icon-button#PolymerElements/paper-icon-button#^2.0.0
* paper-styles#PolymerElements/paper-styles#^2.0.0
* polymer#Polymer/polymer#^2.1.0
toggle-icon version 1.3.0
### Dependencies
* iron-checked-element-behavior#PolymerElements/iron-checked-element-behavior#^2.0.0
* paper-behaviors#PolymerElements/paper-behaviors#^2.0.0
* paper-icon-button#PolymerElements/paper-icon-button#^2.0.0
* paper-styles#PolymerElements/paper-styles#^2.0.0
* polymer#Polymer/polymer#^2.1.0
toggle-icon version 1.4.0
### Dependencies
* iron-checked-element-behavior#PolymerElements/iron-checked-element-behavior#^2.0.0
* paper-behaviors#PolymerElements/paper-behaviors#^2.0.0
* paper-icon-button#PolymerElements/paper-icon-button#^2.0.0
* paper-styles#PolymerElements/paper-styles#^2.0.0
* polymer#Polymer/polymer#^2.1.0
toggle-icon version 2.0.0
### Dependencies
* iron-checked-element-behavior#PolymerElements/iron-checked-element-behavior#^2.0.0
* paper-behaviors#PolymerElements/paper-behaviors#^2.0.0
* paper-icon-button#PolymerElements/paper-icon-button#^2.0.0
* paper-styles#PolymerElements/paper-styles#^2.0.0
* polymer#Polymer/polymer#^2.1.0