This is an automated email from the ASF dual-hosted git repository.
andreww pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/royale-docs.git
The following commit(s) were added to refs/heads/master by this push:
new 846c6ca Update Components.md
846c6ca is described below
commit 846c6ca8347fe2189ab0f21864e494b742bbf282
Author: Andrew Wetmore <[email protected]>
AuthorDate: Sun May 19 19:27:25 2019 -0300
Update Components.md
Improved the example.
---
User-interface/Components.md | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/User-interface/Components.md b/User-interface/Components.md
index 1103b13..5540846 100644
--- a/User-interface/Components.md
+++ b/User-interface/Components.md
@@ -76,12 +76,11 @@ There are several other component sets that are
proofs-of-concept that wrap exis
For sets that do not have an extensive demonstration suite like Tour de Jewel
for the Jewel set, you can see quickly what components seem to be available.
- Let's say I then decide I want to use the Jewel component set in my
application. I need to call it in the opening lines of the main file in my
project:
+ Let's say I then decide I want to use the Jewel component set in my
application. I need to call it (and the Basic component set, as Jewel builds on
some of its elements) in the opening lines of the main file in my project:
```
<?xml version="1.0" encoding="utf-8"?>
<!--
- ...
<c:MyProjectUsingJewel xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:j="library://ns.apache.org/royale/jewel"
xmlns:html="library://ns.apache.org/royale/html"
@@ -89,7 +88,9 @@ There are several other component sets that are
proofs-of-concept that wrap exis
xmlns:c="components.*" sourceCodeUrl="MyProjectUsingJewel.mxml">
````
- Let's say I want to insert a multi-line label in my app's UI. I use the Label
component in the "j" namespace I established for Jewel:
+(Note the code example omits the copyright information that normally appears
in a file after the "<?xml..." line.)
+
+Let's say I want to insert a multi-line label in my app's UI. I use the Label
component in the "j" namespace I established for Jewel:
`
<j:Label text="This is a multiline label with more text that wraps if
container has set a width" multiline="true"/>