How to use the @material/icon-toggle/.MDCIconToggle function in @material/icon-toggle

To help you get started, we’ve selected a few @material/icon-toggle 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 prateekbh / preact-material-components / IconToggle / IconToggle.jsx View on Github external
componentDidMount() {
    this.MDComponent = new MDCIconToggle(this.control);
    this.MDComponent.listen('MDCIconToggle:change', this._onChange);
  }
  componentWillUnmount() {
github prateekbh / preact-material-components / ts / IconToggle / index.tsx View on Github external
public componentDidMount() {
    super.componentDidMount();
    if (this.control) {
      this.MDComponent = new MDCIconToggle(this.control);
      this.MDComponent.listen('MDCIconToggle:change', this.onChange);
    }
  }