How to use the @material/checkbox/dist/mdc.checkbox.min.MDCCheckbox function in @material/checkbox

To help you get started, we’ve selected a few @material/checkbox examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github SpringflowNL / aurelia-mdc-elements / src / resources / components / checkbox / mdc-checkbox.js View on Github external
bind() {
		this.mdcCheckbox = new MDCCheckbox(this.element);
		this.element.id = '_' + this.id; // anders heeft dit element zelfde id als input. Raakt label for="" in de war
    }
github SpringflowNL / aurelia-mdc-elements / dist / es2015 / components / checkbox / mdc-checkbox.js View on Github external
bind() {
        this.mdcCheckbox = new MDCCheckbox(this.element);
        this.element.id = '_' + this.id;
    }
github SpringflowNL / aurelia-mdc-elements / src / resources / components / checkbox / mdc-checkbox.js View on Github external
attached() {
        this.mdcCheckbox = new MDCCheckbox(this.element.firstElementChild);
        this.mdcCheckbox.required = this.required;
        this.mdcCheckbox.disabled = this.disabled;
        this.mdcCheckbox.indeterminate = this.indeterminate;

        if (!this.id) {
            this.id = this.unique;
        }
    }
github SpringflowNL / aurelia-mdc-elements / dist / components / checkbox / mdc-checkbox.js View on Github external
_proto.attached = function attached() {
    this.mdcCheckbox = new _mdcCheckbox.MDCCheckbox(this.element.firstElementChild);
    this.mdcCheckbox.required = this.required;
    this.mdcCheckbox.disabled = this.disabled;
    this.mdcCheckbox.indeterminate = this.indeterminate;

    if (!this.id) {
      this.id = this.unique;
    }
  };
github SpringflowNL / aurelia-mdc-elements / dist / commonjs / components / checkbox / mdc-checkbox.js View on Github external
MdcCheckbox.prototype.bind = function bind() {
        this.mdcCheckbox = new _mdcCheckbox.MDCCheckbox(this.element);
        this.element.id = '_' + this.id;
    };