forked from quasarframework/quasar
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathQTime.json
More file actions
182 lines (168 loc) · 4.86 KB
/
QTime.json
File metadata and controls
182 lines (168 loc) · 4.86 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
{
"mixins": [ "components/date/use-datetime" ],
"meta": {
"docsUrl": "https://v2.quasar.dev/vue-components/time"
},
"props": {
"model-value": {
"extends": "model-value",
"type": [ "String", "null", "undefined" ],
"desc": "Time of the component; Either use this property (along with a listener for 'update:modelValue' event) OR use v-model directive",
"examples": [
"v-model=\"currentTime\""
]
},
"format24h": {
"type": "Boolean",
"desc": "Forces 24 hour time display instead of AM/PM system",
"default": "(based on Quasar lang language being used)",
"category": "behavior"
},
"default-date": {
"type": "String",
"desc": "The default date to use (in YYYY/MM/DD format) when model is unfilled (undefined or null)",
"default": "current day",
"examples": [
"1995/02/23"
],
"category": "model"
},
"mask": {
"default": "HH:mm",
"examples": [ "HH:mm:ss", "YYYY-MM-DD HH:mm:ss", "HH:mm MMMM Do, YYYY" ]
},
"options": {
"type": "Function",
"desc": "Optionally configure what time is the user allowed to set; Overridden by 'hour-options', 'minute-options' and 'second-options' if those are set; For best performance, reference it from your scope and do not define it inline",
"params": {
"hr": {
"type": "Number",
"desc": "Hour",
"examples": [ 15 ]
},
"min": {
"type": [ "Number", "null" ],
"desc": "Minutes",
"examples": [ 38 ]
},
"sec": {
"type": [ "Number", "null" ],
"desc": "Seconds",
"examples": [ 12 ]
}
},
"returns": null,
"examples": [
":options=\"(hr, min, sec) => hr <= 6\""
],
"category": "behavior"
},
"hour-options": {
"type": "Array",
"desc": "Optionally configure what hours is the user allowed to set; Overrides 'options' prop if that is also set",
"examples": [
":hour-options=\"[ 3, 6, 9 ]\""
],
"category": "behavior"
},
"minute-options": {
"type": "Array",
"desc": "Optionally configure what minutes is the user allowed to set; Overrides 'options' prop if that is also set",
"examples": [
":minute-options=\"[0, 15, 30, 45]\""
],
"category": "behavior"
},
"second-options": {
"type": "Array",
"desc": "Optionally configure what seconds is the user allowed to set; Overrides 'options' prop if that is also set",
"examples": [
":second-options=\"[0, 7, 10, 23]\""
],
"category": "behavior"
},
"with-seconds": {
"type": "Boolean",
"desc": "Allow the time to be set with seconds",
"category": "model|behavior"
},
"now-btn": {
"type": "Boolean",
"desc": "Display a button that selects the current time",
"category": "content"
}
},
"slots": {
"default": {
"desc": "This is where additional buttons can go"
}
},
"events": {
"update:model-value": {
"extends": "update:model-value",
"params": {
"value": {
"type": [ "String", "null" ]
},
"details": {
"type": "Object",
"desc": "Object of properties on the new model",
"definition": {
"year": {
"type": "Number",
"required": true,
"desc": "The year",
"__exemption": [ "examples" ]
},
"month": {
"type": "Number",
"required": true,
"desc": "The month",
"__exemption": [ "examples" ]
},
"day": {
"type": "Number",
"required": true,
"desc": "The day of the month",
"__exemption": [ "examples" ]
},
"hour": {
"type": "Number",
"required": true,
"desc": "The hour",
"__exemption": [ "examples" ]
},
"minute": {
"type": "Number",
"required": true,
"desc": "The minute",
"__exemption": [ "examples" ]
},
"second": {
"type": "Number",
"required": true,
"desc": "The second",
"__exemption": [ "examples" ]
},
"millisecond": {
"type": "Number",
"required": true,
"desc": "The millisecond",
"__exemption": [ "examples" ]
},
"changed": {
"type": "Boolean",
"required": true,
"desc": "Did the model change?"
}
}
}
}
}
},
"methods": {
"setNow": {
"desc": "Change model to current moment"
}
}
}