Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/html/lib/onyx/source/TextArea.js
diff options
context:
space:
mode:
Diffstat (limited to 'html/lib/onyx/source/TextArea.js')
-rw-r--r--html/lib/onyx/source/TextArea.js19
1 files changed, 19 insertions, 0 deletions
diff --git a/html/lib/onyx/source/TextArea.js b/html/lib/onyx/source/TextArea.js
new file mode 100644
index 0000000..0a50808
--- /dev/null
+++ b/html/lib/onyx/source/TextArea.js
@@ -0,0 +1,19 @@
+/**
+ An onyx-styled TextArea control. In addition to the features of
+ <a href="#enyo.TextArea">enyo.TextArea</a>, onyx.TextArea has a
+ *defaultFocus* property that can be set to true to focus the TextArea when
+ it's rendered. Only one TextArea should be set as the *defaultFocus*.
+
+ Typically, an onyx.TextArea is placed inside an
+ <a href="#onyx.InputDecorator">onyx.InputDecorator</a>, which provides
+ styling, e.g.:
+
+ {kind: "onyx.InputDecorator", components: [
+ {kind: "onyx.TextArea", onchange: "inputChange"}
+ ]}
+*/
+enyo.kind({
+ name: "onyx.TextArea",
+ kind: "enyo.TextArea",
+ classes: "onyx-textarea"
+});