How to use the @material/switch/dist/mdc.switch.min.MDCSwitch function in @material/switch

To help you get started, we’ve selected a few @material/switch 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 / switch / mdc-switch.js View on Github external
attached() {
        this.myMDCSwitch = new MDCSwitch(this.element.firstElementChild);
    }
github SpringflowNL / aurelia-mdc-elements / dist / es2015 / components / switch / mdc-switch.js View on Github external
bind() {
		this.myMDCSwitch = new MDCSwitch(this.element.firstElementChild);
	}
github SpringflowNL / aurelia-mdc-elements / dist / commonjs / components / switch / mdc-switch.js View on Github external
MdcSwitch.prototype.bind = function bind() {
		this.myMDCSwitch = new _mdcSwitch.MDCSwitch(this.element.firstElementChild);
	};
github SpringflowNL / aurelia-mdc-elements / dist / components / switch / mdc-switch.js View on Github external
_proto.attached = function attached() {
    this.myMDCSwitch = new _mdcSwitch.MDCSwitch(this.element.firstElementChild);
  };