cristijora / vue-tabs

Simplified bootstrap tabs
https://cristijora.github.io/vue-tabs/#/
MIT License
251 stars 72 forks source link

How to use beforeChange? #41

Closed san-kumar closed 6 years ago

san-kumar commented 6 years ago

VueTab has a beforeChange method with the following comment:

/***
         * Function to execute before tab switch. Return value must be boolean
         * If the return result is false, tab switch is restricted
         */
        beforeChange: {
            type: Function
        },

Unfortunately it is not working for me. Please see this JSFiddle here:

https://jsfiddle.net/qgro0w6r/

What am I doing wrong?

cristijora commented 6 years ago

Hello @san-kumar Really sorry for the long response. beforeChange is an old artifact which is no longer used. Please refer to the documentation to see valid props/events http://vuejs.creative-tim.com/vue-tabs/#/?id=v-tab-props

san-kumar commented 6 years ago

Ok thanks :) Good to know.