Directory

vcf-toggle-button - Vaadin Add-on Directory

Vaadin Component Factory Toggle Button. vcf-toggle-button - Vaadin Add-on Directory
# <vcf-toggle-button> ## Demo https://vcf-toggle-button.netlify.com/ ## Installation Install `vcf-toggle-button`: ```sh npm i @vaadin-component-factory/vcf-toggle-button --save ``` ## Usage Once installed, import it in your application: ```js import '@vaadin-component-factory/vcf-toggle-button/vcf-toggle-button.js'; ``` And use it: ```html ``` ### Attributes - `label`: Provide a label for the toggle button. - `checked`: Changes the state of toggle button to "on". - `disabled`: Disables the toggle button. ### Event - `change`: Fires whenever the state of the toggle button is changed: ```javascript document.querySelector('vcf-toggle-button').addEventListener('change', e => { console.log(e.detail.checked); }); ``` ## Running demo 1. Fork the `vcf-toggle-button` repository and clone it locally. 1. Make sure you have [npm](https://www.npmjs.com/) installed. 1. When in the `vcf-toggle-button` directory, run `npm install` to install dependencies. 1. Run `npm start` to open the demo. ## Contributing To contribute to the component, please read [the guideline](https://github.com/vaadin/vaadin-core/blob/master/CONTRIBUTING.md) first. ## License Apache 2.0 ### Sponsored development Major pieces of development of this add-on has been sponsored by multiple customers of Vaadin. Read more about Expert on Demand at: [Support](https://vaadin.com/support) and [Pricing](https://vaadin.com/pricing)
View on NPM
View on GitHub
Online Demo
License

vcf-toggle-button version 0.1.0
### Dependencies * @polymer/polymer#^3.0.0 * @vaadin/vaadin-checkbox#^2.2.10 * @vaadin/vaadin-element-mixin#^2.1.3 * @vaadin/vaadin-lumo-styles#^1.5.0 * @vaadin/vaadin-themable-mixin#^1.4.4

vcf-toggle-button version 0.1.1
### Dependencies * @polymer/polymer#^3.0.0 * @vaadin/vaadin-checkbox#^2.2.10 * @vaadin/vaadin-element-mixin#^2.1.3 * @vaadin/vaadin-lumo-styles#^1.5.0 * @vaadin/vaadin-themable-mixin#^1.4.4

vcf-toggle-button version 0.1.2
### Dependencies * @polymer/polymer#^3.0.0 * @vaadin/vaadin-checkbox#^2.2.10 * @vaadin/vaadin-element-mixin#^2.1.3 * @vaadin/vaadin-lumo-styles#^1.5.0 * @vaadin/vaadin-themable-mixin#^1.4.4

vcf-toggle-button version 0.1.3
### Dependencies * @polymer/polymer#^3.0.0 * @vaadin/vaadin-checkbox#^2.2.10 * @vaadin/vaadin-element-mixin#^2.1.3 * @vaadin/vaadin-lumo-styles#^1.5.0 * @vaadin/vaadin-themable-mixin#^1.4.4

vcf-toggle-button version 0.1.4
### Dependencies * @polymer/polymer#^3.0.0 * @vaadin/vaadin-checkbox#^2.2.10 * @vaadin/vaadin-element-mixin#^2.1.3 * @vaadin/vaadin-lumo-styles#^1.5.0 * @vaadin/vaadin-themable-mixin#^1.4.4

vcf-toggle-button version 0.1.5
### Dependencies * @polymer/polymer#^3.0.0 * @vaadin/vaadin-checkbox#^2.2.10 * @vaadin/vaadin-element-mixin#^2.1.3 * @vaadin/vaadin-lumo-styles#^1.5.0 * @vaadin/vaadin-themable-mixin#^1.4.4

vcf-toggle-button version 0.1.6
### Dependencies * @polymer/polymer#^3.0.0 * @vaadin/vaadin-checkbox#^2.2.10 * @vaadin/vaadin-element-mixin#^2.1.3 * @vaadin/vaadin-lumo-styles#^1.5.0 * @vaadin/vaadin-themable-mixin#^1.4.4

vcf-toggle-button version 1.0.0
### Dependencies * @polymer/polymer#^3.0.0 * @vaadin/vaadin-checkbox#^2.2.10 * @vaadin/vaadin-element-mixin#^2.1.3 * @vaadin/vaadin-lumo-styles#^1.5.0 * @vaadin/vaadin-themable-mixin#^1.4.4

vcf-toggle-button version 1.0.1
### Dependencies * @polymer/polymer#^3.0.0 * @vaadin/vaadin-checkbox#^2.2.10 * @vaadin/vaadin-element-mixin#^2.1.3 * @vaadin/vaadin-lumo-styles#^1.5.0 * @vaadin/vaadin-themable-mixin#^1.4.4

vcf-toggle-button version 1.0.2
### Dependencies * @polymer/polymer#^3.0.0 * @vaadin/vaadin-checkbox#^2.2.10 * @vaadin/vaadin-element-mixin#^2.1.3 * @vaadin/vaadin-lumo-styles#^1.5.0 * @vaadin/vaadin-themable-mixin#^1.4.4

vcf-toggle-button version 1.0.3
### Dependencies * @polymer/polymer#^3.0.0 * @vaadin/vaadin-checkbox#^2.2.10 * @vaadin/vaadin-element-mixin#^2.1.3 * @vaadin/vaadin-lumo-styles#^1.5.0 * @vaadin/vaadin-themable-mixin#^1.4.4