phoenixwong / vue2-timepicker

A dropdown time picker (hour|minute|second) for Vue 2.x, with flexible time format support
https://phoenixwong.github.io/vue2-timepicker/
MIT License
432 stars 193 forks source link

Change disabled attribute. #130

Closed yakyn0103 closed 4 years ago

yakyn0103 commented 4 years ago

How can i change the attribute dynamically. Thanks.

phoenixwong commented 4 years ago

Set a Boolean variable to control the disabled state, and change its value when you needed to.

{
  data () {
    return {
      toDisabled: false
    }
  }
}
<vue-timepicker :disabled="toDisabled"></vue-timepicker>

Documentation: Disable Picker