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 74b4b16  tourdejewel: show labelFunction usage in a list example
74b4b16 is described below

commit 74b4b16b4e78e4a1bdd568c7248b9d11a64b6b74
Author: Carlos Rovira <[email protected]>
AuthorDate: Mon Aug 10 13:51:59 2020 +0200

    tourdejewel: show labelFunction usage in a list example
---
 examples/jewel/TourDeJewel/src/main/royale/ListPlayGround.mxml | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/examples/jewel/TourDeJewel/src/main/royale/ListPlayGround.mxml 
b/examples/jewel/TourDeJewel/src/main/royale/ListPlayGround.mxml
index 0561de8..2f1591d 100644
--- a/examples/jewel/TourDeJewel/src/main/royale/ListPlayGround.mxml
+++ b/examples/jewel/TourDeJewel/src/main/royale/ListPlayGround.mxml
@@ -127,6 +127,9 @@ limitations under the License.
                        //              trace(iconVO.label);                    
        
                        //      }
                        // }
+                       private function formatLabel(item:Object):String {
+                               return " - " + item.label;
+                       }
                ]]>
        </fx:Script>
 
@@ -340,6 +343,7 @@ limitations under the License.
                                                <j:beads>
                                                        
<j:HorizontalListScroll/>
                                                        
<j:ListAlternateRowColor/>
+                                                       <js:LabelFunction 
labelFunction="formatLabel"/>
                                                </j:beads>
                                        </j:List>
 

Reply via email to