quasar
Version:
Build high-performance VueJS user interfaces (SPA, PWA, SSR, Mobile and Desktop) in record time
62 lines (57 loc) • 2.34 kB
JSON
{
"mixins": [ "components/tabs/use-tab", "composables/private.use-router-link/use-router-link" ],
"meta": {
"docsUrl": "https://v2.quasar.dev/vue-components/tabs"
},
"events": {
"click": {
"desc": "Emitted when the component is clicked",
"internal": false,
"params": {
"evt": {
"extends": "evt",
"desc": "JS event object; If you want to cancel navigation then call evt.preventDefault() synchronously in your event handler"
},
"go": {
"type": "Function",
"desc": "When you need to control the time at which the component should trigger the route navigation then call evt.preventDefault() synchronously and then call this function at your convenience; Useful if you have async work to be done before the actual route navigation or if you want to redirect somewhere else",
"required": false,
"params": {
"opts": {
"type": "Object",
"desc": "Optional options",
"required": false,
"definition": {
"to": {
"type": [ "String", "Object" ],
"desc": "Equivalent to Vue Router <router-link> 'to' property; Specify it explicitly otherwise it will be set with same value as component's 'to' prop",
"required": false,
"examples": [
"'/home/dashboard'",
"{ name: 'my-route-name' }"
]
},
"replace": {
"type": "Boolean",
"desc": "Equivalent to Vue Router <router-link> 'replace' property; Specify it explicitly otherwise it will be set with same value as component's 'replace' prop",
"required": false
},
"returnRouterError": {
"type": "Boolean",
"desc": "Return the router error, if any; Otherwise the returned Promise will always fulfill",
"required": false
}
},
"addedIn": "v2.9"
}
},
"returns": {
"type": "Promise<any>",
"desc": "Returns the router's navigation promise",
"addedIn": "v2.9"
}
}
}
}
}
}