How to use the material-components-web.autoInit function in material-components-web

To help you get started, we’ve selected a few material-components-web 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 chriscamicas / girr / client / src / components / Topic / TopicCard.vue View on Github external
mounted () {
    // code here executes once the component is rendered
    autoInit(this.$el) // reapply MDCRipple to all mdc-list-item
  },
  methods: {
github arabsight / aurelia-mdc-plugin / src / mdc-target.js View on Github external
attached() {
        const hasMdcElements = this.config.mdcClasses.some(cls => {
            return this.element.classList.contains(cls);
        });

        if (!hasMdcElements) return;

        autoInit(this.element.parentNode, () => { });
    }
}
github arabsight / aurelia-mdc-plugin / dist / es2015 / mdc-target.js View on Github external
attached() {
        const hasMdcElements = this.config.mdcClasses.some(cls => {
            return this.element.classList.contains(cls);
        });

        if (!hasMdcElements) return;

        autoInit(this.element.parentNode, () => {});
    }
}) || _class) || _class);