royale-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pio...@apache.org
Subject [royale-asjs] 02/02: Update DataGridExample with latest fixes in DataGridPercentageView
Date Fri, 12 Jan 2018 22:53:08 GMT
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

commit fb2d1e65c3817048544474e3454175fbe965ed0b
Author: Piotr Zarzycki <piotrzarzycki21@gmail.com>
AuthorDate: Fri Jan 12 23:52:47 2018 +0100

    Update DataGridExample with latest fixes in DataGridPercentageView
---
 .../DataGridExample/src/main/royale/MyInitialView.mxml       | 12 +++++++++---
 1 file changed, 9 insertions(+), 3 deletions(-)

diff --git a/examples/royale/DataGridExample/src/main/royale/MyInitialView.mxml b/examples/royale/DataGridExample/src/main/royale/MyInitialView.mxml
index bf530b7..086cae9 100644
--- a/examples/royale/DataGridExample/src/main/royale/MyInitialView.mxml
+++ b/examples/royale/DataGridExample/src/main/royale/MyInitialView.mxml
@@ -60,6 +60,11 @@ limitations under the License.
 			border-right: solid 1px #333333;
 		}
 		
+		.DataGridStyle
+		{
+			IBeadView: ClassReference("org.apache.royale.html.beads.DataGridPercentageView");	
+		}
+		
 		.DynamicGrid {
 			IBeadModel: ClassReference("org.apache.royale.html.beads.models.DataGridModel");
 		}
@@ -83,9 +88,9 @@ limitations under the License.
 	<js:TextButton x="520" y="490" text="Remove Value" click="removeValue()" />
 	
 		
-	<js:DataGrid id="dataGrid" x="20" y="50" width="400" height="350" change="dataGridChange(dataGrid,
output1)" rowHeight="40">
+	<js:DataGrid id="dataGrid" x="20" y="50" width="400" height="350" change="dataGridChange(dataGrid,
output1)" 
+				 rowHeight="40" className="DataGridStyle">
 		<js:beads>
-			<js:DataGridPercentageView />
 			<js:ConstantBinding
 				sourceID="applicationModel"
 				sourcePropertyName="productList"
@@ -106,7 +111,8 @@ limitations under the License.
 				destinationPropertyName="dataProvider" />
 		</js:beads>
 		<js:columns>
-			<js:DataGridColumn label="Image" dataField="image" columnWidth="100" itemRenderer="products.ProductItemRenderer"
className="DynamicGridColumn" />
+			<js:DataGridColumn label="Image" dataField="image" columnWidth="100" itemRenderer="products.ProductItemRenderer"

+							   className="DynamicGridColumn" />
 			<js:DataGridColumn label="Title" dataField="title" columnWidth="200" className="DynamicGridColumn"
/>
 			<js:DataGridColumn label="Sales" dataField="sales" columnWidth="100" className="DynamicGridColumn"
/>
 		</js:columns>

-- 
To stop receiving notification emails like this one, please contact
"commits@royale.apache.org" <commits@royale.apache.org>.

Mime
View raw message