forked from quasarframework/quasar
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathQField.json
More file actions
102 lines (94 loc) · 2.38 KB
/
QField.json
File metadata and controls
102 lines (94 loc) · 2.38 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
{
"mixins": [ "components/field/__QField" ],
"meta": {
"docsUrl": "https://v1.quasar.dev/vue-components/field"
},
"props": {
"maxlength": {
"type": [ "String", "Number" ],
"desc": "Specify a max length of model",
"examples": [ "12" ],
"category": "model"
}
},
"scopedSlots": {
"control": {
"desc": "Slot for controls; Suggestion QSlider, QRange, QKnob, ...",
"scope": {
"id": {
"type": "String",
"desc": "Element id used in the `for` attribute of the field label. Can be used to link the control to the label",
"examples": [ "qf_363270c0-7a83-62b1-8dcf-6dfd64ee38fa" ]
},
"field": {
"type": "Object",
"desc": "DOM element of the field",
"__exemption": [ "examples" ]
},
"editable": {
"type": "Boolean",
"desc": "Field is editable"
},
"focused": {
"type": "Boolean",
"desc": "Field has focus"
},
"floatingLabel": {
"type": "Boolean",
"desc": "Field's label is floating"
},
"value": {
"type": "Any",
"desc": "Field's value",
"examples": [ 0.241, "Text" ]
},
"emitValue": {
"type": "Function",
"desc": "Function that emits an @input event in the context of the field",
"params": {
"value": {
"type": "Any",
"desc": "Value to be emitted",
"examples": [ 0, "Changed text" ]
}
},
"returns": null
}
}
}
},
"events": {
"input": {
"extends": "input",
"desc": "Emitted when the model changes, only when used with 'clearable' or the 'control' scoped slot."
},
"focus": {
"desc": "Emitted when component gets focused",
"params": {
"evt": {
"type": "Object",
"desc": "JS event object",
"__exemption": [ "examples" ]
}
}
},
"blur": {
"desc": "Emitted when component loses focus",
"params": {
"evt": {
"type": "Object",
"desc": "JS event object",
"__exemption": [ "examples" ]
}
}
}
},
"methods": {
"focus": {
"desc": "Focus field"
},
"blur": {
"desc": "Blur field (lose focus)"
}
}
}