You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@royale.apache.org by ca...@apache.org on 2019/01/16 22:42:00 UTC
[royale-asjs] branch develop updated: example of inline html in a
label mising html tags and binding
This is an automated email from the ASF dual-hosted git repository.
carlosrovira pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/royale-asjs.git
The following commit(s) were added to refs/heads/develop by this push:
new 351f3f0 example of inline html in a label mising html tags and binding
351f3f0 is described below
commit 351f3f006b9a63f0e09520b4914f633710fcae1a
Author: Carlos Rovira <ca...@apache.org>
AuthorDate: Wed Jan 16 23:41:53 2019 +0100
example of inline html in a label mising html tags and binding
---
.../royale/TourDeJewel/src/main/royale/LabelPlayGround.mxml | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/examples/royale/TourDeJewel/src/main/royale/LabelPlayGround.mxml b/examples/royale/TourDeJewel/src/main/royale/LabelPlayGround.mxml
index 7944191..1949054 100644
--- a/examples/royale/TourDeJewel/src/main/royale/LabelPlayGround.mxml
+++ b/examples/royale/TourDeJewel/src/main/royale/LabelPlayGround.mxml
@@ -31,9 +31,16 @@ limitations under the License.
{
label.text = "jewel label clicked";
}
+
+ [Bindable]
+ public var a_string:String = "a Label";
]]>
</fx:Script>
+ <j:beads>
+ <js:ContainerDataBinding/>
+ </j:beads>
+
<j:Card width="350">
<html:H3 text="Jewel Label"/>
@@ -44,5 +51,9 @@ limitations under the License.
</j:Label>
<j:Label text="This is a multiline label with more text that wraps if container has set a width" multiline="true"/>
+
+ <j:Label>
+ <j:html><![CDATA[<p>This is <strong><font size='16'>{a_string}</font></strong><br>using inline <u>HTML</u></p>]]></j:html>
+ </j:Label>
</j:Card>
</c:ExampleAndSourceCodeTabbedSectionContent>