forked from quasarframework/quasar
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathQInput.json
More file actions
140 lines (123 loc) · 3.31 KB
/
QInput.json
File metadata and controls
140 lines (123 loc) · 3.31 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
{
"mixins": [ "components/field/__QField", "mixins/mask", "mixins/form" ],
"meta": {
"docsUrl": "https://v1.quasar.dev/vue-components/input"
},
"behavior": {
"$listeners": {
"target": "to the inner native input element"
}
},
"props": {
"value": {
"type": [ "String", "Number" ],
"desc": "Model of the component; Either use this property (along with a listener for 'input' event) OR use v-model directive",
"required": true,
"examples": [ "v-model=\"myText\"" ],
"category": "model"
},
"shadow-text": {
"type": "String",
"desc": "Text to be displayed as shadow at the end of the text in the control; Does NOT applies to type=file",
"examples": [ "rest of the fill value" ],
"category": "content",
"addedIn": "v1.10.0"
},
"type": {
"type": "String",
"desc": "Input type",
"default": "text",
"values": [
"text", "password", "textarea", "email", "search",
"tel", "file", "number", "url", "time", "date"
],
"examples": [ "password" ],
"category": "general"
},
"debounce": {
"type": [ "String", "Number" ],
"desc": "Debounce amount (in milliseconds) when updating model",
"examples": [ "0", "530" ],
"category": "model"
},
"maxlength": {
"type": [ "String", "Number" ],
"desc": "Specify a max length of model",
"examples": [ "12" ],
"category": "model"
},
"autogrow": {
"type": "Boolean",
"desc": "Make field autogrow along with its content (uses a textarea)",
"category": "content"
},
"input-class": {
"type": [ "Array", "String", "Object" ],
"desc": "Class definitions to be attributed to the underlying input tag",
"examples": [
"my-special-class",
":input-class=\"{ 'my-special-class': <condition> }\""
],
"category": "style"
},
"input-style": {
"type": [ "Array", "String", "Object" ],
"desc": "Style definitions to be attributed to the underlying input tag",
"examples": [
"background-color: #ff0000",
":input-style=\"{ backgroundColor: '#ff0000' }\""
],
"category": "style"
}
},
"events": {
"input": {
"extends": "input",
"params": {
"value": {
"type": [ "String", "Number" ]
}
}
},
"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 underlying input tag"
},
"blur": {
"desc": "Lose focus on underlying input tag"
},
"select": {
"desc": "Select input text"
},
"getNativeElement": {
"desc": "Get the native input/textarea DOM Element",
"returns": {
"type": "Object",
"desc": "The underlying native input/textarea DOM Element",
"__exemption": [ "examples" ]
},
"addedIn": "v1.15.15"
}
}
}