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 2017/04/18 06:17:53 UTC
[29/50] [abbrv] git commit: [flex-asjs] [refs/heads/dual] - - Update
MDLDynamicTabsExample to use new data provider notifiers
- Update MDLDynamicTabsExample to use new data provider notifiers
Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/7f29a983
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/7f29a983
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/7f29a983
Branch: refs/heads/dual
Commit: 7f29a983864b2e59f3f13c0581fb8ffaa2f4abe5
Parents: 8ea97a4
Author: piotrz <pi...@apache.org>
Authored: Sun Apr 9 21:23:22 2017 +0200
Committer: piotrz <pi...@apache.org>
Committed: Sun Apr 9 21:23:22 2017 +0200
----------------------------------------------------------------------
.../MDLDynamicTabsExample/src/main/flex/views/InitialView.mxml | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/7f29a983/examples/flexjs/MDLDynamicTabsExample/src/main/flex/views/InitialView.mxml
----------------------------------------------------------------------
diff --git a/examples/flexjs/MDLDynamicTabsExample/src/main/flex/views/InitialView.mxml b/examples/flexjs/MDLDynamicTabsExample/src/main/flex/views/InitialView.mxml
index c5f573c..5523b6f 100644
--- a/examples/flexjs/MDLDynamicTabsExample/src/main/flex/views/InitialView.mxml
+++ b/examples/flexjs/MDLDynamicTabsExample/src/main/flex/views/InitialView.mxml
@@ -42,8 +42,10 @@ limitations under the License.
<mdl:Tabs id="myTabs" selectedIndex="1" tabIdField="tabId" labelField="label" className="customTabs"
dataProvider="{tabsModel.tabs}" width="500">
<mdl:beads>
- <js:DataProviderChangeNotifier sourceID="tabsModel" propertyName="tabs"
- destinationPropertyName="dataProvider" changeEventName="dataProviderChanged" />
+ <js:DataProviderCollectionChangeNotifier sourceID="tabsModel" propertyName="tabs"
+ destinationPropertyName="dataProvider" changeEventName="dataProviderChanged" />
+ <js:DataProviderItemsChangeNotifier sourceID="tabsModel" propertyName="tabs"
+ destinationPropertyName="dataProvider" changeEventName="dataProviderChanged" />
</mdl:beads>
</mdl:Tabs>
<mdl:Button text="Add new Tab" click="onAddNewTabClick(event)"/>