You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@royale.apache.org by pu...@apache.org on 2020/12/21 17:15:16 UTC

[royale-asjs] branch develop updated: Update DataGridColumn.as added editorDataField and itemEditor

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 ff1b413  Update DataGridColumn.as added editorDataField and itemEditor
ff1b413 is described below

commit ff1b413f61a65d41fdbc4e0e2ad6fec7f54a6a75
Author: pashminakazi <42...@users.noreply.github.com>
AuthorDate: Mon Dec 21 22:15:10 2020 +0500

    Update DataGridColumn.as added editorDataField and itemEditor
---
 .../mx/controls/dataGridClasses/DataGridColumn.as  | 42 ++++++++++++++++++++++
 1 file changed, 42 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 05bfb0b..dda22c8 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
@@ -1007,6 +1007,48 @@ public class DataGridColumn extends org.apache.royale.html.supportClasses.DataGr
 
 			dispatchEvent(new Event("dataTipChanged"));
 		}
+		
+		//----------------------------------
+		//  itemEditor
+		//----------------------------------
+
+	    	[Inspectable(category="General")]
+
+		/**
+		 *  A class factory for the instances of the item editor to use for the 
+		 *  column, when it is editable.
+		 *
+		 *  @default new ClassFactory(mx.controls.TextInput)
+		 *  
+		 *  @langversion 3.0
+		 *  @playerversion Flash 9
+		 *  @playerversion AIR 1.1
+		 *  @productversion Flex 3
+		 */
+		public var itemEditor:IFactory = defaultItemEditorFactory;
+
+		//----------------------------------
+		//  editorDataField
+		//----------------------------------
+
+		[Inspectable(category="General")]
+
+		/**
+		 *  The name of the property of the item editor that contains the new
+		 *  data for the list item.
+		 *  For example, the default <code>itemEditor</code> is
+		 *  TextInput, so the default value of the <code>editorDataField</code> 
+		 *  property is <code>"text"</code>, which specifies the 
+		 *  <code>text</code> property of the TextInput control.
+		 *
+		 *  @default "text"
+		 *  
+		 *  @langversion 3.0
+		 *  @playerversion Flash 9
+		 *  @playerversion AIR 1.1
+		 *  @productversion Flex 3
+		 */
+		public var editorDataField:String = "text";
 }
 
 }