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 2018/05/22 17:25:43 UTC
[royale-asjs] branch develop updated: add missing Bindable
"dataProviderChanged" to allow reassign completely new data to dataProvider
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 2975af5 add missing Bindable "dataProviderChanged" to allow reassign completely new data to dataProvider
2975af5 is described below
commit 2975af538119b018e2530877e7c95cdcc5717e9f
Author: Carlos Rovira <ca...@apache.org>
AuthorDate: Tue May 22 19:25:39 2018 +0200
add missing Bindable "dataProviderChanged" to allow reassign completely new data to dataProvider
---
examples/royale/JewelExample/src/main/royale/ListPlayGround.mxml | 7 +++++++
.../jewel/beads/models/SingleSelectionCollectionViewModel.as | 1 +
2 files changed, 8 insertions(+)
diff --git a/examples/royale/JewelExample/src/main/royale/ListPlayGround.mxml b/examples/royale/JewelExample/src/main/royale/ListPlayGround.mxml
index 52efa32..6a348d6 100644
--- a/examples/royale/JewelExample/src/main/royale/ListPlayGround.mxml
+++ b/examples/royale/JewelExample/src/main/royale/ListPlayGround.mxml
@@ -43,6 +43,11 @@ limitations under the License.
{
_simple = value;
}
+
+ public function assignNewData():void
+ {
+ list.dataProvider = new ArrayList(["blue", "red", "yellow", "green"]);
+ }
]]>
</fx:Script>
@@ -65,5 +70,7 @@ limitations under the License.
</j:List>
<j:Label id="selected"/>
+
+ <j:Button text="Assign new data" primary="true" click="assignNewData()"/>
</j:Group>
diff --git a/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/models/SingleSelectionCollectionViewModel.as b/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/models/SingleSelectionCollectionViewModel.as
index 7035a33..fa73080 100644
--- a/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/models/SingleSelectionCollectionViewModel.as
+++ b/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/models/SingleSelectionCollectionViewModel.as
@@ -66,6 +66,7 @@ package org.apache.royale.jewel.beads.models
private var _dataProvider:ICollectionView;
+ [Bindable("dataProviderChanged")]
/**
* @copy org.apache.royale.core.ISelectionModel#dataProvider
*
--
To stop receiving notification emails like this one, please contact
carlosrovira@apache.org.