How to use the @material/switch/index.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 material-components / material-components-web-catalog / src / SwitchCatalog.js View on Github external
initSwitch = (el) => {
    if (!el) return;
    this.switchControl = new MDCSwitch(el);
  };
github material-components / material-components-web-catalog / src / ThemeCatalog.js View on Github external
  initSwitch = ele => ele && this.componentInstances.push(new MDCSwitch(ele));
  initTextField = ele => ele && this.componentInstances.push(