How to use the @material/slider.MDCSlider.attachTo function in @material/slider

To help you get started, we’ve selected a few @material/slider 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 / slider / Slider.vue View on Github external
mounted () {
    this.mdcSlider = MDCSlider.attachTo(this.$el)
    this.mdcSlider.value = this.value
    this.mdcSlider.min = this.min
    this.mdcSlider.max = this.max
    this.mdcSlider.step = this.step
    this.mdcSlider.disabled = this.disabled
  },
  beforeDestroy () {