This is an automated email from the ASF dual-hosted git repository.

piotrz 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 38a71ae  MXRoyale: Add labelField to have control over displayed text 
on ToggleButtonBar
38a71ae is described below

commit 38a71ae3e063d2d6655cefd90d11dd7a976c37b5
Author: Piotr Zarzycki <[email protected]>
AuthorDate: Thu Dec 10 16:15:22 2020 +0100

    MXRoyale: Add labelField to have control over displayed text on 
ToggleButtonBar
---
 .../src/main/royale/mx/controls/ToggleButtonBar.as | 24 +++++++++++++++++++++-
 1 file changed, 23 insertions(+), 1 deletion(-)

diff --git 
a/frameworks/projects/MXRoyale/src/main/royale/mx/controls/ToggleButtonBar.as 
b/frameworks/projects/MXRoyale/src/main/royale/mx/controls/ToggleButtonBar.as
index 832b4ad..77dc8c4 100644
--- 
a/frameworks/projects/MXRoyale/src/main/royale/mx/controls/ToggleButtonBar.as
+++ 
b/frameworks/projects/MXRoyale/src/main/royale/mx/controls/ToggleButtonBar.as
@@ -353,11 +353,33 @@ public class ToggleButtonBar extends UIComponent 
implements ILayoutParent, ILayo
         //   bSelectionChanged = true;
         //   bSelectedIndexChanged = true;
         //  invalidateDisplayList();
-        return;
         // }
         //commitSelectedIndex(value);
     }
 
+    /**
+     *  The name of the field in the data provider items to display
+     *  as the label.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
+     *  @royaleignorecoercion org.apache.royale.core.ISelectionModel
+     */
+    public function get labelField():String
+    {
+        return (model as ISelectionModel).labelField;
+    }
+
+    /**
+     *  @private
+     *  @royaleignorecoercion org.apache.royale.core.ISelectionModel
+     */
+    public function set labelField(value:String):void
+    {
+        (model as ISelectionModel).labelField = value;
+    }
     
//--------------------------------------------------------------------------
     //
     //  Overridden properties

Reply via email to