Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/html/lib/onyx/source/RichText.js
blob: 8a7f3882bcb4cfa9824ab3309820999e62d26e06 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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"
});