You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flex.apache.org by pe...@apache.org on 2017/03/24 14:21:41 UTC

git commit: [flex-asjs] [refs/heads/develop] - Updated DataGrid example to work with recent changes.

Repository: flex-asjs
Updated Branches:
  refs/heads/develop d1d275477 -> 7af092b10


Updated DataGrid example to work with recent changes.


Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/7af092b1
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/7af092b1
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/7af092b1

Branch: refs/heads/develop
Commit: 7af092b1007e92b97304dd29d12adfcefeb5fa3b
Parents: d1d2754
Author: Peter Ent <pe...@apache.org>
Authored: Fri Mar 24 10:21:39 2017 -0400
Committer: Peter Ent <pe...@apache.org>
Committed: Fri Mar 24 10:21:39 2017 -0400

----------------------------------------------------------------------
 .../src/main/flex/MyInitialView.mxml             | 19 ++++++++++---------
 1 file changed, 10 insertions(+), 9 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/7af092b1/examples/flexjs/DataGridExample/src/main/flex/MyInitialView.mxml
----------------------------------------------------------------------
diff --git a/examples/flexjs/DataGridExample/src/main/flex/MyInitialView.mxml b/examples/flexjs/DataGridExample/src/main/flex/MyInitialView.mxml
index 2f543e5..8ac036d 100644
--- a/examples/flexjs/DataGridExample/src/main/flex/MyInitialView.mxml
+++ b/examples/flexjs/DataGridExample/src/main/flex/MyInitialView.mxml
@@ -29,30 +29,31 @@ limitations under the License.
 		]]>
     </fx:Script>
 	
-	<js:Label id="output" x="450" y="30" width="100" />
+	<js:Label id="output" x="450" y="30"/>
+	
 		
-	<js:DataGrid id="dataGrid" x="20" y="30" width="400" height="300" change="dataGridChange()" rowHeight="30">
+	<js:DataGrid id="dataGrid" x="20" y="30" width="400" height="200" change="dataGridChange()" rowHeight="40">
 		<js:beads>
-			<js:DataGridPercentageLayout />
+			<!--<js:DataGridPercentageLayout />-->
 			<js:ConstantBinding
 				sourceID="applicationModel"
 				sourcePropertyName="productList"
 				destinationPropertyName="dataProvider" />
 		</js:beads>
 		<js:columns>
-			<js:DataGridColumn label="Image" dataField="image" columnWidth="25" itemRenderer="products.ProductItemRenderer" />
-			<js:DataGridColumn label="Title" dataField="title" columnWidth="50" />
-			<js:DataGridColumn label="Sales" dataField="sales" columnWidth="25" />
+			<js:DataGridColumn label="Image" dataField="image" columnWidth="100" itemRenderer="products.ProductItemRenderer" />
+			<js:DataGridColumn label="Title" dataField="title" columnWidth="200" />
+			<js:DataGridColumn label="Sales" dataField="sales" columnWidth="100" />
 		</js:columns>
 	</js:DataGrid>
 		
-	<js:DataGrid id="dataGrid2" x="20" y="400" width="400" height="300" change="dataGridChange()" rowHeight="40">
+	<js:DataGrid id="dataGrid2" x="20" y="300" width="400" height="245" change="dataGridChange()" rowHeight="40">
 		<js:beads>
-		    <js:DataGridLinesBead>
+		    <!--<js:DataGridLinesBead>
 		       <js:stroke>
 		           <js:SolidColorStroke color="#FF8800" weight="2" />
 		       </js:stroke>
-		    </js:DataGridLinesBead>
+		    </js:DataGridLinesBead>-->
 			<js:ConstantBinding
 				sourceID="applicationModel"
 				sourcePropertyName="productList"