Topic: emit event after the user pressed the tab and before tab change
Hello,
Is there a way to listen to an event that is fired on clicking the tab and if necessary prevent the tab change?
example:user press on tab -> event fired -> if some condition is not filled prevent tab transfer.
thank you very much :).
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Status
Answered
Specification of the issue
- User: Free
- Premium support: No
- Technology: MDB Vue
- MDB Version: 6.5.0
- Device: pc
- Browser: chrome
- OS: ubuntu
- Provided sample code: No
- Provided link: No
Related topics
Mikołaj Smoleński staff commented 5 years ago
To make it work I suggest to use
mdb-tab
component with all it's children and events. The example is available here: https://mdbootstrap.com/docs/vue/components/tabs/#pills-tabsBest regards