How to use the @material/tab-scroller.MDCTabScroller.attachTo function in @material/tab-scroller

To help you get started, we’ve selected a few @material/tab-scroller 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 / tabs / TabScroller.vue View on Github external
mounted () {
    if (this.getTabScroller instanceof Function) {
      this.$nextTick(() => {
        this.mdcTabScroller = this.getTabScroller()
      })
    } else {
      this.mdcTabScroller = MDCTabScroller.attachTo(this.$el)
    }
  },
  beforeDestroy () {