How to use the @material/tab.MDCTab.attachTo function in @material/tab

To help you get started, we’ve selected a few @material/tab 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 / Tab.vue View on Github external
this.$nextTick(() => {
        this.updateSlot()
        this.mdcTab = MDCTab.attachTo(this.$el)
        if (this.index !== -1) { // within 
          this.replaceTabInstance(this.mdcTab, this.index)
        }
      })
    },
github matsp / material-components-vue / components / tabs / Tab.vue View on Github external
childList: true,
      subtree: true
    })

    this.classObserver = new MutationObserver(() => this.updateActive())
    this.classObserver.observe(this.$el, {
      attributes: true
    })
    if (this.getTabInstance instanceof Function) { // within 
      this.$nextTick(() => {
        [this.mdcTab, this.index] = this.getTabInstance(this.$el)
        this.assignProperties()
        this.updateSlot()
      })
    } else { // standalone tab
      this.mdcTab = MDCTab.attachTo(this.$el)
    }
  },
  beforeDestroy () {