You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flex.apache.org by yi...@apache.org on 2016/10/13 07:40:23 UTC
[22/27] git commit: [flex-asjs] [refs/heads/refactor-sprite] -
Changed DataGridExample to show use of DataGridPercentageLayout.
Changed DataGridExample to show use of DataGridPercentageLayout.
Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/23403e53
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/23403e53
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/23403e53
Branch: refs/heads/refactor-sprite
Commit: 23403e53dc6472a11e82fd6ec0d1df22457159e5
Parents: 9bd1e9f
Author: Peter Ent <pe...@apache.org>
Authored: Tue Oct 11 11:06:46 2016 -0400
Committer: Peter Ent <pe...@apache.org>
Committed: Tue Oct 11 11:06:46 2016 -0400
----------------------------------------------------------------------
examples/flexjs/DataGridExample/src/MyInitialView.mxml | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/23403e53/examples/flexjs/DataGridExample/src/MyInitialView.mxml
----------------------------------------------------------------------
diff --git a/examples/flexjs/DataGridExample/src/MyInitialView.mxml b/examples/flexjs/DataGridExample/src/MyInitialView.mxml
index 242c122..2f543e5 100644
--- a/examples/flexjs/DataGridExample/src/MyInitialView.mxml
+++ b/examples/flexjs/DataGridExample/src/MyInitialView.mxml
@@ -33,15 +33,16 @@ limitations under the License.
<js:DataGrid id="dataGrid" x="20" y="30" width="400" height="300" change="dataGridChange()" rowHeight="30">
<js:beads>
+ <js:DataGridPercentageLayout />
<js:ConstantBinding
sourceID="applicationModel"
sourcePropertyName="productList"
destinationPropertyName="dataProvider" />
</js:beads>
<js:columns>
- <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: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:columns>
</js:DataGrid>