forked from quasarframework/quasar
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapi.extends.json
More file actions
234 lines (208 loc) · 5.49 KB
/
api.extends.json
File metadata and controls
234 lines (208 loc) · 5.49 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
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
{
"props": {
"readonly": {
"type": "Boolean",
"desc": "Put component in readonly mode",
"category": "state"
},
"disable": {
"type": "Boolean",
"desc": "Put component in disabled mode",
"category": "state"
},
"color": {
"type": "String",
"desc": "Color name for component from the Quasar Color Palette",
"examples": [ "primary", "teal-10" ],
"category": "style"
},
"text-color": {
"type": "String",
"desc": "Overrides text color (if needed); color name from the Quasar Color Palette",
"examples": [ "primary", "teal-10" ],
"category": "style"
},
"dense": {
"type": "Boolean",
"desc": "Dense mode; occupies less space",
"category": "style"
},
"size": {
"type": "String",
"desc": "Size in CSS units, including unit name",
"examples": [ "16px", "2rem" ],
"category": "style"
},
"dark": {
"type": "Boolean",
"desc": "Notify the component that the background is a dark color",
"category": "style"
},
"icon": {
"type": "String",
"desc": "Icon name following Quasar convention; make sure you have the icon library installed unless you are using 'img:' prefix",
"examples": [
"map",
"ion-add",
"img:https://cdn.quasar.dev/logo/svg/quasar-logo.svg",
"img:statics/path/to/some_image.png"
],
"category": "content"
},
"flat": {
"type": "Boolean",
"desc": "Applies a 'flat' design (no default shadow)",
"category": "style"
},
"bordered": {
"type": "Boolean",
"desc": "Applies a default border to the component",
"category": "style"
},
"square": {
"type": "Boolean",
"desc": "Removes border-radius so borders are squared",
"category": "style"
},
"rounded": {
"type": "Boolean",
"desc": "Applies a small standard border-radius for a squared shape of the component",
"category": "style"
},
"tabindex": {
"type": [ "Number", "String" ],
"desc": "Tabindex HTML attribute value",
"examples": [ "0", "100" ],
"category": "general"
},
"transition": {
"type": "String",
"desc": "One of Quasar's embedded transitions",
"examples": [ "fade", "slide-down" ],
"category": "behavior"
},
"value": {
"desc": "Model of the component; Either use this property (along with a listener for 'input' event) OR use v-model directive",
"category": "model"
},
"sanitize": {
"type": "Boolean",
"default": "false",
"desc": "Force use of textContent instead of innerHTML to render text; Use it when the text might be unsafe (from user input)",
"category": "behavior"
}
},
"slots": {
"default": {
"desc": "Default slot in the devland unslotted content of the component"
}
},
"scopedSlots": {
"default": {
"desc": "Default scoped slot in the devland content of the component"
}
},
"events": {
"input": {
"desc": "Emitted when the component needs to change the model; Is also used by v-model",
"params": {
"value": {
"type": "Any",
"desc": "New model value",
"required": true,
"__exemption": [ "examples" ]
}
}
},
"show": {
"desc": "Emitted after component has triggered show()",
"params": {
"evt": {
"type": "Object",
"desc": "JS event object",
"required": true,
"__exemption": [ "examples" ]
}
}
},
"before-show": {
"desc": "Emitted when component triggers show() but before it finishes doing it",
"params": {
"evt": {
"type": "Object",
"desc": "JS event object",
"required": true,
"__exemption": [ "examples" ]
}
}
},
"hide": {
"desc": "Emitted after component has triggered hide()",
"params": {
"evt": {
"type": "Object",
"desc": "JS event object",
"required": true,
"__exemption": [ "examples" ]
}
}
},
"before-hide": {
"desc": "Emitted when component triggers hide() but before it finishes doing it",
"params": {
"evt": {
"type": "Object",
"desc": "JS event object",
"required": true,
"__exemption": [ "examples" ]
}
}
},
"click": {
"desc": "Emitted when user clicks/taps on the component",
"params": {
"evt": {
"type": "Object",
"desc": "JS event object",
"required": true,
"__exemption": [ "examples" ]
}
}
}
},
"methods": {
"show": {
"desc": "Triggers component to show",
"params": {
"evt": {
"type": "Object",
"required": false,
"desc": "JS event object",
"__exemption": [ "examples" ]
}
}
},
"hide": {
"desc": "Triggers component to hide",
"params": {
"evt": {
"type": "Object",
"required": false,
"desc": "JS event object",
"__exemption": [ "examples" ]
}
}
},
"toggle": {
"params": {
"evt": {
"type": "Object",
"required": false,
"desc": "JS event object",
"__exemption": [ "examples" ]
}
},
"desc": "Triggers component to toggle between show/hide"
}
}
}