UNPKG

quasar

Version:

Build high-performance VueJS user interfaces (SPA, PWA, SSR, Mobile and Desktop) in record time

68 lines (59 loc) 1.75 kB
{ "mixins": [ "components/btn/use-btn" ], "meta": { "docsUrl": "https://v2.quasar.dev/vue-components/button" }, "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": { "extends": "evt" } } } }, "events": { "click": { "desc": "Emitted when component is clicked (activated)", "params": { "evt": { "extends": "evt", "desc": "JS event object; If you want to cancel navigation set synchronously 'evt.navigate' to false" }, "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 } } } } }