From ca3ad6305ec0655ad8475a12ac2228b61cdd9ba0 Mon Sep 17 00:00:00 2001 From: Lionel LASKE Date: Sat, 25 Aug 2012 20:23:36 +0000 Subject: Init commit --- (limited to 'html/lib/onyx/source/Input.js') 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 + enyo.Input, 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 + onyx.InputDecorator, 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" +}); -- cgit v0.9.1