@ppci/custom-checkbox
v0.1.4
Published
Custom checkbox
Downloads
2
Keywords
Readme
Checkbox
Table of contents
Installation
NPM
npm i @ppci/custom-checkbox
// Polyfill: https://lit-element.polymer-project.org/guide/use#polyfills
npm i --save-dev @webcomponents/webcomponentsjs
Usage
Javascript
import '@ppci/custom-checkbox'
Browser
<!-- Default -->
<script type="module" src="https://cdn.jsdelivr.net/npm/@ppci/custom-checkbox/builds/index.min.js" />
<!-- Legacy -->
<script type="module" src="https://cdn.jsdelivr.net/npm/@ppci/custom-checkbox/builds/legacy.min.js" />
<!-- Component -->
<custom-checkbox
name=${String}
label=${String}
placeholder=${String}
@change=${Function}
@change-delayed=${Function}
?checked=${Boolean}
></custom-checkbox>
Styling
custom-checkbox {
}
Properties
Events
The value in the response reflects the current state of the input field.
</td>
<td>```{ name: 'firstname', value: 'p' }```</td>
This could be useful to prevent too many network requests on a search box.
</td>
<td>```{ name: 'firstname', value: 'powerpeers' }```</td>