You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flex.apache.org by ah...@apache.org on 2015/12/16 22:36:17 UTC
[31/50] git commit: [flex-asjs] [refs/heads/master] - Added
demonstration of DataGridLinesBead to DataGridExample.
Added demonstration of DataGridLinesBead to DataGridExample.
Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/27ef9d1c
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/27ef9d1c
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/27ef9d1c
Branch: refs/heads/master
Commit: 27ef9d1c4838283a8a0b31290c80cf4bb5703d75
Parents: e42934b
Author: Peter Ent <pe...@apache.org>
Authored: Tue Oct 13 13:52:21 2015 -0400
Committer: Peter Ent <pe...@apache.org>
Committed: Tue Oct 13 13:52:21 2015 -0400
----------------------------------------------------------------------
.../DataGridExample/src/MyInitialView.mxml | 19 +++++++++++++++++++
1 file changed, 19 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/27ef9d1c/examples/flexjs/DataGridExample/src/MyInitialView.mxml
----------------------------------------------------------------------
diff --git a/examples/flexjs/DataGridExample/src/MyInitialView.mxml b/examples/flexjs/DataGridExample/src/MyInitialView.mxml
index dd51c7c..d6173a1 100644
--- a/examples/flexjs/DataGridExample/src/MyInitialView.mxml
+++ b/examples/flexjs/DataGridExample/src/MyInitialView.mxml
@@ -44,5 +44,24 @@ limitations under the License.
<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:beads>
+ <js:DataGridLinesBead>
+ <js:stroke>
+ <js:SolidColorStroke color="#FF8800" weight="2" />
+ </js:stroke>
+ </js:DataGridLinesBead>
+ <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:columns>
+ </js:DataGrid>
</js:ViewBase>