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 7b0c788  jewel-iconbuttonbar: fix example change selection
7b0c788 is described below

commit 7b0c7888de4409e5f7a52790e47eff836bcf4a9c
Author: Carlos Rovira <[email protected]>
AuthorDate: Sun Dec 15 02:19:27 2019 +0100

    jewel-iconbuttonbar: fix example change selection
---
 .../royale/TourDeJewel/src/main/royale/ButtonBarPlayGround.mxml     | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git 
a/examples/royale/TourDeJewel/src/main/royale/ButtonBarPlayGround.mxml 
b/examples/royale/TourDeJewel/src/main/royale/ButtonBarPlayGround.mxml
index 964c6e3..276abaf 100644
--- a/examples/royale/TourDeJewel/src/main/royale/ButtonBarPlayGround.mxml
+++ b/examples/royale/TourDeJewel/src/main/royale/ButtonBarPlayGround.mxml
@@ -119,17 +119,17 @@ limitations under the License.
                        <j:Card>
                                <html:H3 text="Jewel IconButtonBar"/>
 
-                               <j:Label text="Use icons in the buttons"/>
+                               <j:Label html="Use icons in the buttons. At 
Application level CSS you need to specify the icon class with a declaration for 
&lt;strong>&lt;i>j|IconButtonBar&lt;i>&lt;/strong> like this: 
&lt;strong>&lt;i>iconClass: 
ClassReference('org.apache.royale.icons.FontIcon')&lt;/i>&lt;/strong>"/>
 
                                <html:H4 text="Width 100% and emphasized 
color"/>
 
-                               <j:IconButtonBar localId="ibb" 
change="ibb_label.text = ibb.selectedItem as String"
+                               <j:IconButtonBar localId="ibb" 
change="ibb_label.text = ibb.selectedItem.label + ' (icon: ' + 
ibb.selectedItem.icon + ')'"
                                        emphasis="primary" width="100%" 
material="true"
                                        
dataProvider="{listModel.iconButtonData}"/>
                                
                                <html:H4 text="No Width and icons to the 
right"/>
 
-                               <j:IconButtonBar localId="ibb2" 
change="ibb_label.text = ibb2.selectedItem as String"
+                               <j:IconButtonBar localId="ibb2" 
change="ibb_label.text = ibb2.selectedItem.label + ' (icon: ' + 
ibb2.selectedItem.icon + ')'"
                                        emphasis="secondary" 
rightPosition="true" material="true" iconField="icon"
                                        
dataProvider="{listModel.iconButtonData}"/>
                                

Reply via email to