diff options
Diffstat (limited to 'html/lib/onyx/source/Input.js')
-rw-r--r-- | html/lib/onyx/source/Input.js | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/html/lib/onyx/source/Input.js b/html/lib/onyx/source/Input.js new file mode 100644 index 0000000..a1ebe53 --- /dev/null +++ b/html/lib/onyx/source/Input.js @@ -0,0 +1,20 @@ +/** + An onyx-styled input control. In addition to the features of + <a href="#enyo.Input">enyo.Input</a>, onyx.Input has a *defaultFocus* + property that can be set to true to focus the input when it's rendered. + Only one input should be set as the *defaultFocus*. + + Typically, an onyx.Input is placed inside an + <a href="#onyx.InputDecorator">onyx.InputDecorator</a>, which provides + styling, e.g.: + + {kind: "onyx.InputDecorator", components: [ + {kind: "onyx.Input", placeholder: "Enter some text...", onchange: "inputChange"} + ]} + +*/ +enyo.kind({ + name: "onyx.Input", + kind: "enyo.Input", + classes: "onyx-input" +}); |