You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flex.apache.org by pi...@apache.org on 2017/05/01 09:24:29 UTC
git commit: [flex-asjs] [refs/heads/develop] - Update MDLExample with
new DropDownList component
Repository: flex-asjs
Updated Branches:
refs/heads/develop fbfb631bb -> f63a86a70
Update MDLExample with new DropDownList component
Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/f63a86a7
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/f63a86a7
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/f63a86a7
Branch: refs/heads/develop
Commit: f63a86a70ad49178fa60246874813c27d4f04ee3
Parents: fbfb631
Author: piotrz <pi...@apache.org>
Authored: Mon May 1 11:24:25 2017 +0200
Committer: piotrz <pi...@apache.org>
Committed: Mon May 1 11:24:25 2017 +0200
----------------------------------------------------------------------
.../MDLExample/src/main/flex/DropDownList.mxml | 38 ++++++++++++++++++++
.../src/main/flex/MainNavigation.mxml | 1 +
.../src/main/flex/models/MainNavigationModel.as | 3 +-
3 files changed, 41 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/f63a86a7/examples/flexjs/MDLExample/src/main/flex/DropDownList.mxml
----------------------------------------------------------------------
diff --git a/examples/flexjs/MDLExample/src/main/flex/DropDownList.mxml b/examples/flexjs/MDLExample/src/main/flex/DropDownList.mxml
new file mode 100644
index 0000000..6faf981
--- /dev/null
+++ b/examples/flexjs/MDLExample/src/main/flex/DropDownList.mxml
@@ -0,0 +1,38 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+
+http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+-->
+<mdl:TabBarPanel xmlns:fx="http://ns.adobe.com/mxml/2009"
+ xmlns:js="library://ns.apache.org/flexjs/basic"
+ xmlns:mdl="library://ns.apache.org/flexjs/mdl"
+ xmlns="http://www.w3.org/1999/xhtml" xmlns:models="models.*">
+
+ <mdl:model>
+ <models:MenuModel id="menuModel"/>
+ </mdl:model>
+ <mdl:Grid width="100">
+ <mdl:DropDownList id="dropDownList" labelField="label" width="150">
+ <mdl:beads>
+ <js:ConstantBinding
+ sourceID="menuModel"
+ sourcePropertyName="menuItems"
+ destinationPropertyName="dataProvider" />
+ </mdl:beads>
+ </mdl:DropDownList>
+ </mdl:Grid>
+</mdl:TabBarPanel>
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/f63a86a7/examples/flexjs/MDLExample/src/main/flex/MainNavigation.mxml
----------------------------------------------------------------------
diff --git a/examples/flexjs/MDLExample/src/main/flex/MainNavigation.mxml b/examples/flexjs/MDLExample/src/main/flex/MainNavigation.mxml
index 947f172..1892876 100644
--- a/examples/flexjs/MDLExample/src/main/flex/MainNavigation.mxml
+++ b/examples/flexjs/MDLExample/src/main/flex/MainNavigation.mxml
@@ -81,6 +81,7 @@ limitations under the License.
<local:Badges id="badges_panel"/>
<local:Footers id="footers_panel"/>
<local:Icons id="icons_panel"/>
+ <local:DropDownList id="dropdownlist_panel"/>
</mdl:NavigationLayoutContent>
</mdl:NavigationLayout>
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/f63a86a7/examples/flexjs/MDLExample/src/main/flex/models/MainNavigationModel.as
----------------------------------------------------------------------
diff --git a/examples/flexjs/MDLExample/src/main/flex/models/MainNavigationModel.as b/examples/flexjs/MDLExample/src/main/flex/models/MainNavigationModel.as
index f423d19..f18eb30 100644
--- a/examples/flexjs/MDLExample/src/main/flex/models/MainNavigationModel.as
+++ b/examples/flexjs/MDLExample/src/main/flex/models/MainNavigationModel.as
@@ -68,7 +68,8 @@ package models
new NavigationLinkVO("Loading", "loading_panel"),
new NavigationLinkVO("Menu", "menus_panel"),
new NavigationLinkVO("Badges", "badges_panel"),
- new NavigationLinkVO("Icons", "icons_panel")
+ new NavigationLinkVO("Icons", "icons_panel"),
+ new NavigationLinkVO("Drop Down List", "dropdownlist_panel")
]);
public function get componentsTabs():ArrayList