forked from quasarframework/quasar
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathQDrawer.json
More file actions
187 lines (161 loc) · 5.1 KB
/
QDrawer.json
File metadata and controls
187 lines (161 loc) · 5.1 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
{
"mixins": [ "mixins/model-toggle" ],
"meta": {
"docsUrl": "https://v1.quasar.dev/layout/drawer"
},
"props": {
"side": {
"type": "String",
"desc": "Side to attach to",
"values": [ "left", "right" ],
"default": "left",
"examples": [ "right" ],
"category": "behavior"
},
"overlay": {
"type": "Boolean",
"desc": "Puts drawer into overlay mode (does not occupy space on screen, narrowing the page)",
"category": "behavior"
},
"width": {
"type": "Number",
"desc": "Width of drawer (in pixels)",
"default": 300,
"examples": [ ":width=\"350\"" ],
"category": "style"
},
"mini": {
"type": "Boolean",
"desc": "Puts drawer into mini mode",
"category": "behavior"
},
"mini-width": {
"type": "Number",
"desc": "Width of drawer (in pixels) when in mini mode",
"default": 60,
"examples": [ ":mini-width=\"100\"" ],
"category": "style"
},
"dark": {
"extends": "dark",
"addedIn": "v1.3.0"
},
"mini-to-overlay": {
"type": "Boolean",
"desc": "Mini mode will expand as an overlay",
"category": "behavior"
},
"breakpoint": {
"type": "Number",
"desc": "Breakpoint (in pixels) of layout width up to which mobile mode is used",
"default": 1023,
"examples": [ 1200, ":breakpoint=\"1400\"" ],
"category": "behavior"
},
"behavior": {
"type": "String",
"desc": "Overrides the default dynamic mode into which the drawer is put on",
"values": [
"default", "desktop", "mobile"
],
"default": "default",
"examples": [
"mobile"
],
"category": "behavior"
},
"bordered": {
"extends": "bordered"
},
"elevated": {
"type": "Boolean",
"desc": "Adds a default shadow to the header",
"category": "style"
},
"persistent": {
"type": "Boolean",
"desc": "Prevents drawer from auto-closing when app's route changes",
"category": "behavior"
},
"show-if-above": {
"type": "Boolean",
"desc": "Forces drawer to be shown on screen on initial render if the layout width is above breakpoint, regardless of v-model; This is the default behavior when SSR is taken over by client on initial render",
"category": "behavior"
},
"content-class": {
"type": [ "Array", "String", "Object" ],
"desc": "Class definitions to be attributed to the drawer",
"examples": [
"my-special-class",
":content-class=\"{ 'my-special-class': <condition> }\""
],
"category": "style"
},
"content-style": {
"type": [ "Array", "String", "Object" ],
"desc": "Style definitions to be attributed to the drawer",
"examples": [
"background-color: #ff0000",
":content-style=\"{ backgroundColor: '#ff0000' }\""
],
"category": "style"
},
"no-swipe-open": {
"type": "Boolean",
"desc": "Disables the default behavior where drawer can be swiped into view; Useful for iOS platforms where it might interfere with Safari's 'swipe to go to previous/next page' feature",
"category": "behavior"
},
"no-swipe-close": {
"type": "Boolean",
"desc": "Disables the default behavior where drawer can be swiped out of view (applies to drawer content only); Useful for iOS platforms where it might interfere with Safari's 'swipe to go to previous/next page' feature",
"category": "behavior"
},
"no-swipe-backdrop": {
"type": "Boolean",
"desc": "Disables the default behavior where drawer backdrop can be swiped",
"category": "behavior",
"addedIn": "v1.1.7"
}
},
"slots": {
"default": {
"desc": "Default slot in the devland unslotted content of the component (overridden by 'mini' slot if used and drawer is in mini mode)"
},
"mini": {
"desc": "Content to show when in mini mode (overrides 'default' slot)"
}
},
"events": {
"on-layout": {
"desc": "Emitted when drawer toggles between occupying space on page or not",
"params": {
"state": {
"type": "Boolean",
"desc": "New state"
}
}
},
"click": {
"extends": "click",
"desc": "Emitted when user clicks/taps on the component and drawer is NOT in mobile mode; Useful for when taking a decision to toggle mini mode"
},
"mouseover": {
"extends": "click",
"desc": "Emitted when user moves mouse cursor over the component and drawer is NOT in mobile mode; Useful for when taking a decision to toggle mini mode"
},
"mouseout": {
"extends": "click",
"desc": "Emitted when user moves mouse cursor out of the component and drawer is NOT in mobile mode; Useful for when taking a decision to toggle mini mode"
},
"mini-state": {
"desc": "Emitted when drawer changes the mini-mode state (sometimes it is forced to do so)",
"params": {
"state": {
"type": "Boolean",
"desc": "New state"
}
},
"addedIn": "v1.1.3"
}
}
}