You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@royale.apache.org by ca...@apache.org on 2020/09/16 15:09:49 UTC
[royale-asjs] branch develop updated: tour-de-jewel: DataGridSort
Example (temporal for Piotr)
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 d2cb748 tour-de-jewel: DataGridSort Example (temporal for Piotr)
d2cb748 is described below
commit d2cb748a3cfb164fa7ac2fc79f73559150e39120
Author: Carlos Rovira <ca...@apache.org>
AuthorDate: Wed Sep 16 17:07:59 2020 +0200
tour-de-jewel: DataGridSort Example (temporal for Piotr)
---
examples/jewel/TourDeJewel/src/main/royale/DataGridPlayGround.mxml | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/examples/jewel/TourDeJewel/src/main/royale/DataGridPlayGround.mxml b/examples/jewel/TourDeJewel/src/main/royale/DataGridPlayGround.mxml
index 4d1c018..7b416ba 100644
--- a/examples/jewel/TourDeJewel/src/main/royale/DataGridPlayGround.mxml
+++ b/examples/jewel/TourDeJewel/src/main/royale/DataGridPlayGround.mxml
@@ -38,6 +38,7 @@ limitations under the License.
import vos.IconListVO;
import vos.Product;
+ import org.apache.royale.collections.ArrayListView;
[Bindable]
public var listModel:ListsModel = new ListsModel();
@@ -292,10 +293,11 @@ limitations under the License.
</j:Label>
<j:DataGrid localId="dg2" width="100%" height="100%"
- dataProvider="{productModel.productList}"
+ dataProvider="{new ArrayListView(productModel.productList)}"
change="lb2.html = describeItem(event.target.selectedItem)">
<j:beads>
<j:DataGridColumnLabelsChange/>
+ <j:DataGridSort/>
</j:beads>
<j:columns>
<j:DataGridColumn label="Title" dataField="title"/>