How to use the @material/line-ripple.MDCLineRipple.attachTo function in @material/line-ripple

To help you get started, we’ve selected a few @material/line-ripple 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 / line-ripple / LineRipple.vue View on Github external
mounted () {
    if (!(this.getLineRipple instanceof Function)) { // can not be init by parent
      this.mdcLineRipple = MDCLineRipple.attachTo(this.$el)
      if (this.rippleCenter) this.setRippleCenter(this.rippleCenter)
    }
  },
  beforeDestroy () {