This is an automated email from the ASF dual-hosted git repository.
carlosrovira 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 7441db7 tour-de-jewel: update dg sample to show % height, even
without dataprovider set
7441db7 is described below
commit 7441db7ce7169400450a14163650af920105432f
Author: Carlos Rovira <[email protected]>
AuthorDate: Sun Mar 1 11:20:14 2020 +0100
tour-de-jewel: update dg sample to show % height, even without dataprovider
set
---
.../royale/TourDeJewel/src/main/royale/DataGridPlayGround.mxml | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
diff --git
a/examples/royale/TourDeJewel/src/main/royale/DataGridPlayGround.mxml
b/examples/royale/TourDeJewel/src/main/royale/DataGridPlayGround.mxml
index 376dd79..91b5c16 100644
--- a/examples/royale/TourDeJewel/src/main/royale/DataGridPlayGround.mxml
+++ b/examples/royale/TourDeJewel/src/main/royale/DataGridPlayGround.mxml
@@ -119,11 +119,13 @@ limitations under the License.
new Product("ps222","to
show!",35,190,"assets/smallorangerect.jpg"),
new
Product("ps102",":-)",44,200,"assets/smallbluerect.jpg"),
]);
+ datagrid.dataProvider = productModel.fewProductList;
}
private function clearData():void
{
productModel.fewProductList = new ArrayList();
+ datagrid.dataProvider = productModel.fewProductList;
}
]]>
</fx:Script>
@@ -148,7 +150,7 @@ limitations under the License.
</c:ExampleHeader>
<j:GridCell desktopNumerator="1" desktopDenominator="2"
tabletNumerator="1" tabletDenominator="2" phoneNumerator="1"
phoneDenominator="1">
- <j:Card>
+ <j:Card height="600">
<j:CardHeader>
<html:H3 text="Jewel DataGrid"
className="primary-normal"/>
</j:CardHeader>
@@ -156,9 +158,10 @@ limitations under the License.
<j:Label text="Basic configuration,
default width, no column widths, no rowHeight. First column uses a custom
renderer."
multiline="true"/>
- <j:DataGrid localId="datagrid"
+ <j:DataGrid localId="datagrid"
height="100%"
change="dataGridProductChange(event.target as DataGrid, datagrid_lb)"
-
dataProvider="{productModel.fewProductList}">
+ >
+ <!--
dataProvider="{productModel.fewProductList}" -->
<j:beads>
<j:DataGridColumnLabelsChange/>
</j:beads>