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

pushminakazi 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 0757b2c  Update DataGridColumn.as Added dataTipField
0757b2c is described below

commit 0757b2cd7d6f16420d7b870938e732977bd2c685
Author: pashminakazi <[email protected]>
AuthorDate: Mon Dec 14 19:12:56 2020 +0500

    Update DataGridColumn.as Added dataTipField
---
 .../mx/controls/dataGridClasses/DataGridColumn.as  | 48 ++++++++++++++++++++++
 1 file changed, 48 insertions(+)

diff --git 
a/frameworks/projects/MXRoyale/src/main/royale/mx/controls/dataGridClasses/DataGridColumn.as
 
b/frameworks/projects/MXRoyale/src/main/royale/mx/controls/dataGridClasses/DataGridColumn.as
index 82ba89f..575c1f4 100644
--- 
a/frameworks/projects/MXRoyale/src/main/royale/mx/controls/dataGridClasses/DataGridColumn.as
+++ 
b/frameworks/projects/MXRoyale/src/main/royale/mx/controls/dataGridClasses/DataGridColumn.as
@@ -950,6 +950,54 @@ public class DataGridColumn extends 
org.apache.royale.html.supportClasses.DataGr
                {
                        _editable = value;
                }
+               
+               //----------------------------------
+               //  dataTipField
+               //----------------------------------
+
+               /**
+                *  @private
+                *  Storage for the dataTipField property.
+                */
+               private var _dataTipField:String;
+
+               [Bindable("dataTipFieldChanged")]
+               [Inspectable(category="Advanced", defaultValue="label")]
+
+               /**
+                *  The name of the field in the data provider to display as 
the datatip. 
+                *  By default, the DataGrid control looks for a property named 
+                *  <code>label</code> on each data provider item and displays 
it.
+                *  However, if the data provider does not contain a 
<code>label</code>
+                *  property, you can set the <code>dataTipField</code> 
property to
+                *  specify a different property.  
+                *  For example, you could set the value to "FullName" when a 
user views a
+                *  set of people's names included from a database.
+                *  
+                *  @langversion 3.0
+                *  @playerversion Flash 9
+                *  @playerversion AIR 1.1
+                *  @productversion Flex 3
+                */
+               public function get dataTipField():String
+               {
+                       return _dataTipField;
+               }
+
+               /**
+                *  @private
+                */
+               public function set dataTipField(value:String):void
+               {
+                       _dataTipField = value;
+
+                       if (owner)
+                       {
+                               //owner.invalidateList();
+                       }
+
+                       dispatchEvent(new Event("dataTipChanged"));
+               }
 }
 
 }

Reply via email to