myg-checkbox
v0.13.8
Published
Myg checkbox component.
Downloads
9
Readme
Checkboxes
Usage
Stylesheets
@import "myg-checkbox/checkbox"
// Include classes (optional)
+myg__classes--checkbox
Javascript
import MygCheckbox from 'myg-checkbox';
document.addEventListener( 'ready', () => {
const mygCheckboxes = MygCheckbox.initAll( document.querySelectorAll('.myg-checkbox'), {} );
})
or
import * as myg from 'myg/src/myg';
const MygCheckbox = myg.MygCheckbox;
document.addEventListener( 'ready', () => {
const mygCheckboxes = MygCheckbox.initAll( document.querySelectorAll('.myg-checkbox'), {} );
})