forked from quasarframework/quasar
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathQBtnToggle.json
More file actions
199 lines (171 loc) · 4.8 KB
/
QBtnToggle.json
File metadata and controls
199 lines (171 loc) · 4.8 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
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
{
"mixins": [ "mixins/ripple", "mixins/form" ],
"meta": {
"docsUrl": "https://v1.quasar.dev/vue-components/button-toggle"
},
"behavior": {
"$listeners": true
},
"props": {
"value": {
"type": "Any",
"desc": "Model of the component; Either use this property (along with a listener for 'input' event) OR use v-model directive",
"examples": [ "v-model=\"selected\"" ],
"category": "model"
},
"options": {
"type": "Array",
"desc": "Array of Objects defining each option",
"required": true,
"definition": {
"attrs": {
"type": "Object",
"desc": "Key-value for attributes to be set on the button",
"examples": [ "{ 'aria-label': 'Button label' }" ],
"__exemption": [ "definition" ],
"addedIn": "v1.13.0"
},
"label": {
"type": "String",
"desc": "Label of option button; Use this prop and/or 'icon', but at least one is required",
"examples": [ "Option 1" ]
},
"icon": {
"extends": "icon",
"desc": "Icon of option button; Use this prop and/or 'label', but at least one is required"
},
"value": {
"type": "Any",
"desc": "Value of the option that will be used by component model",
"required": true,
"__exemption": [ "examples" ]
},
"slot": {
"type": "String",
"desc": "Slot name to use for this button content; Useful for customizing content or even add tooltips",
"examples": [ "mySlot" ]
},
"...props": {
"type": "Any",
"desc": "Any other QBtn props (including class and style)",
"__exemption": [ "examples" ]
}
},
"examples": [
"[ {label: 'One', value: 'one'}, {label: 'Two', value: 'two'} ]"
],
"category": "model"
},
"color": {
"extends": "color"
},
"text-color": {
"extends": "text-color"
},
"toggle-color": {
"extends": "color",
"default": "primary"
},
"toggle-text-color": {
"extends": "text-color"
},
"spread": {
"type": "Boolean",
"desc": "Spread horizontally to all available space",
"category": "content"
},
"outline": {
"type": "Boolean",
"desc": "Use 'outline' design",
"category": "style"
},
"flat": {
"type": "Boolean",
"desc": "Use 'flat' design",
"category": "style"
},
"unelevated": {
"type": "Boolean",
"desc": "Remove shadow",
"category": "style"
},
"rounded": {
"type": "Boolean",
"desc": "Applies a more prominent border-radius for a squared shape button",
"category": "style"
},
"push": {
"type": "Boolean",
"desc": "Use 'push' design",
"category": "style"
},
"glossy": {
"type": "Boolean",
"desc": "Applies a glossy effect",
"category": "style"
},
"size": {
"type": "String",
"desc": "Button size name or a CSS unit including unit name",
"examples": [ "xs", "sm", "md", "lg", "xl", "25px", "2rem" ],
"category": "style"
},
"padding": {
"type": "String",
"desc": "Apply custom padding (vertical [horizontal]); Size in CSS units, including unit name or standard size name (none|xs|sm|md|lg|xl); Also removes the min width and height when set",
"examples": [ "16px", "10px 5px", "2rem", "xs", "md lg", "2px 2px 5px 7px" ],
"category": "style",
"addedIn": "v1.13.0"
},
"no-caps": {
"type": "Boolean",
"desc": "Avoid turning label text into caps (which happens by default)",
"category": "content"
},
"no-wrap": {
"type": "Boolean",
"desc": "Avoid label text wrapping",
"category": "content"
},
"dense": {
"extends": "dense"
},
"readonly": {
"extends": "readonly"
},
"disable": {
"extends": "disable"
},
"stack": {
"type": "Boolean",
"desc": "Stack icon and label vertically instead of on same line (like it is by default)",
"category": "content"
},
"stretch": {
"type": "Boolean",
"desc": "When used on flexbox parent, button will stretch to parent's height",
"category": "content"
},
"clearable": {
"type": "Boolean",
"desc": "Clears model on click of the already selected button",
"category": "model",
"addedIn": "v1.4.4"
}
},
"events": {
"input": {
"extends": "input"
},
"clear": {
"desc": "When using the 'clearable' property, this event is emitted when the already selected button is clicked",
"addedIn": "v1.4.4"
}
},
"slots": {
"default": {
"desc": "Suggestions: QTooltip, QBadge",
"addedIn": "v1.13.2"
}
}
}