How to use the @material/radio.MDCRadio.attachTo function in @material/radio

To help you get started, we’ve selected a few @material/radio 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 matsp / material-components-vue / components / radio / Radio.vue View on Github external
mounted () {
    if (this.js) this.mdcRadio = MDCRadio.attachTo(this.$el)
  },
  beforeDestroy () {
github matsp / material-components-vue / components / radio / Radio.vue View on Github external
reInstantiate () {
      if (this.js) {
        if (this.mdcRadio) {
          this.mdcRadio.destroy()
        }
        MDCRadio.attachTo(this.$el)
      } else {
        if (this.js) {
          this.mdcRadio.destroy()
        }
        this.mdcRadio = undefined
      }
    }
  }