quasar
Version:
Build high-performance VueJS user interfaces (SPA, PWA, SSR, Mobile and Desktop) in record time
75 lines (65 loc) • 1.9 kB
JSON
{
"mixins": [ "mixins/btn" ],
"meta": {
"docsUrl": "https://v1.quasar.dev/vue-components/button"
},
"behavior": {
"$listeners": true
},
"props": {
"round": {
"type": "Boolean",
"desc": "Makes a circle shaped button",
"category": "style"
},
"percentage": {
"type": "Number",
"desc": "Percentage (0.0 < x < 100.0); To be used along 'loading' prop; Display a progress bar on the background",
"examples": [ 23 ],
"category": "behavior"
},
"dark-percentage": {
"type": "Boolean",
"desc": "Progress bar on the background should have dark color; To be used along with 'percentage' and 'loading' props",
"category": "behavior"
}
},
"slots": {
"default": {
"desc": "Use for custom content, instead of relying on 'icon' and 'label' props"
},
"loading": {
"desc": "Override the default QSpinner when in 'loading' state"
}
},
"methods": {
"click": {
"desc": "Emulate click on QBtn",
"params": {
"evt": {
"type": "Object",
"desc": "JS event object",
"__exemption": [ "examples" ]
}
}
}
},
"events": {
"click": {
"desc": "Emitted when component is clicked (activated)",
"params": {
"evt": {
"type": "Object",
"desc": "JS event object; If you want to cancel navigation set synchronously 'evt.navigate' to false",
"__exemption": [ "examples" ]
},
"navigateFn": {
"type": "Function",
"desc": "When you need to control the time at which the button should trigger the route navigation then set 'evt.navigate' to false and call this function; Useful if you have async work to be done before the actual route navigation",
"params": null,
"returns": null
}
}
}
}
}