Sha256: 8d37cc5e38af5a4f7ff771d594146920ecb0ce00b565d29fbf7038c221c5a2e8

Contents?: true

Size: 450 Bytes

Versions: 14

Compression:

Stored size: 450 Bytes

Contents

import {MDCCheckbox} from '@material/checkbox';

export function initCheckboxes() {
    console.log('\tCheckboxes');

    var components = document.querySelectorAll('.mdc-checkbox');
    if (components) {
        for (var i = 0; i < components.length; i++) {
            var component = components[i];
            if (!component.mdcComponent) {
                component.mdcComponent = MDCCheckbox.attachTo(component);
            }
        }
    }
}

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
voom-presenters-0.1.13 views/mdc/assets/js/components/checkboxes.js
voom-presenters-0.1.12 views/mdc/assets/js/components/checkboxes.js
voom-presenters-0.1.11 views/mdc/assets/js/components/checkboxes.js
voom-presenters-0.1.10 views/mdc/assets/js/components/checkboxes.js
voom-presenters-0.1.9 views/mdc/assets/js/components/checkboxes.js
voom-presenters-0.1.8 views/mdc/assets/js/components/checkboxes.js
voom-presenters-0.1.7 views/mdc/assets/js/components/checkboxes.js
voom-presenters-0.1.6 views/mdc/assets/js/components/checkboxes.js
voom-presenters-0.1.5 views/mdc/assets/js/components/checkboxes.js
voom-presenters-0.1.4 views/mdc/assets/js/components/checkboxes.js
voom-presenters-0.1.3 views/mdc/assets/js/components/checkboxes.js
voom-presenters-0.1.2 views/mdc/assets/js/components/checkboxes.js
voom-presenters-0.1.1 views/mdc/assets/js/components/checkboxes.js
voom-presenters-0.1.0 views/mdc/assets/js/components/checkboxes.js