JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 24
  • Score
    100M100P100Q56992F
  • License ISC

skinny-widgets checkbox element

Package Exports

  • sk-checkbox

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (sk-checkbox) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Skinny Widgets Checkbox

checkbox element

npm i sk-checkbox sk-checkbox-jquery --save

then add the following to your html

<sk-config
    theme="jquery"
    base-path="/node_modules/sk-core/src"
    theme-path="/node_modules/sk-theme-jquery"
></sk-config>
<sk-checkbox id="myCheckbox">Checkbox</sk-checkbox>
<script type="module">
    import { SkCheckbox } from './node_modules/sk-checkbox/index.js';

    customElements.define('sk-checkbox', SkCheckbox);

    myCheckbox.addEventListener('change', (event) => {
        alert('Changed !');
    });
</script>

slots

default (not specified) - draws label for input

label - draws label for input

attributes

value - value syncronized with internal native element

disabled - disabled attribute syncronized with internal native element

template

id: SkCheckboxTpl