UNPKG

quasar

Version:

Build high-performance VueJS user interfaces (SPA, PWA, SSR, Mobile and Desktop) in record time

119 lines (104 loc) 2.74 kB
{ "mixins": [ "components/field/__QField", "mixins/mask" ], "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" }, "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" } } }