Topic: Listen to button events date picker

ruudboon pro asked 5 years ago


Is it possible to add some events to the date picker? I want to trigger an action when ok is pressed so I need to subscribe to the OK button

ruudboon pro commented 5 years ago

Would also be nice if you could trigger the overlay picker with a different button.

 


Mikołaj Smoleński staff answered 5 years ago


Hi there,

You can access the change event like this:

<mdb-date-picker :date="startDate" :option="option" @getValue="getPickerValue"></mdb-date-picker>

And then in methods:

methods: {
getPickerValue(value) {
console.log(value);
}
}

Is that not enough for You? If Yes we could add some new events.

Best Regards

 



Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Answered

Specification of the issue

  • ForumUser: Pro
  • Premium support: No
  • Technology: MDB Vue
  • MDB Version: 4.6.0
  • Device: Workstation
  • Browser: Chrome
  • OS: OSX
  • Provided sample code: No
  • Provided link: No
Tags