Topic: emit event after the user pressed the tab and before tab change

eladhr83 free asked 4 years ago


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 :).


Mikołaj Smoleński staff commented 4 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-tabs

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: 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