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