forked from quasarframework/quasar
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathQBtnDropdown.json
More file actions
141 lines (122 loc) · 4.17 KB
/
QBtnDropdown.json
File metadata and controls
141 lines (122 loc) · 4.17 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
{
"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')"
}
}
}