UNPKG

quasar

Version:

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

142 lines (122 loc) 4.27 kB
{ "mixins": [ "mixins/btn", "mixins/model-toggle" ], "meta": { "docsUrl": "https://v1.quasar.dev/vue-components/button-dropdown" }, "props": { "value": { "desc": "Controls Menu show/hidden state; Either use this property (along with a listener for 'input' event) OR use v-model directive", "examples": [ "v-model=\"menuState\"" ], "category": "model" }, "split": { "type": "Boolean", "desc": "Split dropdown icon into its own button", "category": "content|behavior" }, "dropdown-icon": { "extends": "icon", "addedIn": "v1.1.6" }, "disable-main-btn": { "type": "Boolean", "desc": "Disable main button (useful along with 'split' prop)", "category": "behavior" }, "disable-dropdown": { "type": "Boolean", "desc": "Disables dropdown (dropdown button if using along 'split' prop)", "category": "behavior" }, "no-icon-animation": { "type": "Boolean", "desc": "Disables the rotation of the dropdown icon when state is toggled", "category": "style", "addedIn": "v1.12.0" }, "content-style": { "type": [ "Array", "String", "Object" ], "desc": "Style definitions to be attributed to the menu", "examples": [ "background-color: #ff0000", ":content-style=\"{ backgroundColor: '#ff0000' }\"" ], "category": "style" }, "content-class": { "type": [ "Array", "String", "Object" ], "desc": "Class definitions to be attributed to the menu", "examples": [ "my-special-class", ":content-class=\"{ 'my-special-class': <condition> }\"" ], "category": "style" }, "cover": { "type": "Boolean", "desc": "Allows the menu to cover the button. When used, the 'menu-self' and 'menu-fit' props are no longer effective", "category": "position" }, "persistent": { "type": "Boolean", "desc": "Allows the menu to not be dismissed by a click/tap outside of the menu or by hitting the ESC key", "category": "behavior" }, "no-route-dismiss": { "type": "Boolean", "desc": "Changing route app won't dismiss the popup; No need to set it if 'persistent' prop is also set", "category": "behavior", "addedIn": "v1.13.2" }, "auto-close": { "type": "Boolean", "desc": "Allows any click/tap in the menu to close it; Useful instead of attaching events to each menu item that should close the menu on click/tap", "category": "behavior" }, "menu-anchor": { "type": "String", "desc": "Two values setting the starting position or anchor point of the menu relative to its target", "values": [ "top left", "top middle", "top right", "top start", "top end", "center left", "center middle", "center right", "center start", "center end", "bottom left", "bottom middle", "bottom right", "bottom start", "bottom end" ], "default": "bottom end", "examples": [ "top right", "bottom end" ], "category": "position" }, "menu-self": { "type": "String", "desc": "Two values setting the menu's own position relative to its target", "values": [ "top left", "top middle", "top right", "top start", "top end", "center left", "center middle", "center right", "center start", "center end", "bottom left", "bottom middle", "bottom right", "bottom start", "bottom end" ], "default": "top end", "examples": [ "top right", "bottom end" ], "category": "position" }, "menu-offset": { "type": "Array", "desc": "An array of two numbers to offset the menu horizontally and vertically in pixels", "examples": [ "[8, 8]", "[5, 10]" ], "category": "position", "addedIn": "v1.9.2" } }, "slots": { "default": { "extends": "default" }, "label": { "desc": "Customize main button's content through this slot, unless you're using the 'icon' and 'label' props" } }, "events": { "click": { "extends": "click", "desc": "Emitted when user clicks/taps on the main button (not the icon one, if using 'split')" } } }