@@ -68,10 +68,7 @@ properties:
6868
6969 This has no effect when used with `hintType` Ti.UI.HINT_TYPE_ANIMATED.
7070
71- Prior to Release 3.6.0, assign this property an object from the
72- <Titanium.UI.iOS.AttributedString> class.
73-
74- Since Appcelerator CLI 4.1.0 (Alloy 1.7.0), for Alloy, you can use an `<AttributedHintText>`
71+ For Alloy, you can use an `<AttributedHintText>`
7572 element inside a `<TextField>` element and set the text property as node text:
7673
7774 ``` xml
@@ -103,6 +100,27 @@ properties:
103100 }
104101 ]
105102 }
103+
104+ Since 13.2.0 you can also use the AttributedString object without `Titanium.UI.createAttributedString()`:
105+ ``` js
106+ var text = 'Bacon ipsum dolor Titanium SDK rocks! sit amet fatback leberkas salami sausage tongue strip steak.';
107+ var label = Titanium.UI.createLabel({
108+ attributedString: {
109+ text: text,
110+ attributes: [
111+ {
112+ type: Titanium.UI.ATTRIBUTE_UNDERLINES_STYLE,
113+ value: Ti.UI.ATTRIBUTE_UNDERLINE_STYLE_SINGLE,
114+ range: [text.indexOf('Titanium'), ('Titanium').length]
115+ },
116+ {
117+ type: Titanium.UI.ATTRIBUTE_BACKGROUND_COLOR,
118+ value: "red",
119+ range: [text.indexOf('Titanium'), ('Titanium').length]
120+ }
121+ ]
122+ }
123+ });
106124 ```
107125 type : Titanium.UI.AttributedString
108126 platforms : [android, iphone, ipad, macos]
@@ -117,10 +135,7 @@ properties:
117135 The underlying attributed string drawn by the textArea. If set, avoid setting common attributes
118136 in textArea, such as `value`, `color` and `font`, as unexpected behaviors may result.
119137
120- Prior to Release 3.6.0, assign this property an object from the
121- <Titanium.UI.iOS.AttributedString> class.
122-
123- Since Appcelerator CLI 4.1.0 (Alloy 1.7.0), for Alloy, you can use an `<AttributedString>`
138+ For Alloy, you can use an `<AttributedString>`
124139 element inside a `<TextArea>` element and set the text property as node text:
125140
126141 ``` xml
0 commit comments