You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flex.apache.org by ca...@apache.org on 2016/11/23 10:24:59 UTC

git commit: [flex-asjs] [refs/heads/develop] - List panel to work on lists

Repository: flex-asjs
Updated Branches:
  refs/heads/develop d53d002ef -> 1797dc9da


List panel to work on lists


Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/1797dc9d
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/1797dc9d
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/1797dc9d

Branch: refs/heads/develop
Commit: 1797dc9dab7dc75ad3d2833505880d09559b2991
Parents: d53d002
Author: Carlos Rovira <ca...@apache.org>
Authored: Wed Nov 23 11:24:55 2016 +0100
Committer: Carlos Rovira <ca...@apache.org>
Committed: Wed Nov 23 11:24:55 2016 +0100

----------------------------------------------------------------------
 .../flexjs/MDLExample/src/main/flex/Lists.mxml  | 40 ++++++++++++++++++++
 .../src/main/flex/MainNavigation.mxml           | 18 ++-------
 .../MDLExample/src/main/flex/TextFields.mxml    | 14 ++++---
 3 files changed, 51 insertions(+), 21 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/1797dc9d/examples/flexjs/MDLExample/src/main/flex/Lists.mxml
----------------------------------------------------------------------
diff --git a/examples/flexjs/MDLExample/src/main/flex/Lists.mxml b/examples/flexjs/MDLExample/src/main/flex/Lists.mxml
new file mode 100644
index 0000000..b6cd543
--- /dev/null
+++ b/examples/flexjs/MDLExample/src/main/flex/Lists.mxml
@@ -0,0 +1,40 @@
+<?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:local="*"
+                 xmlns:mdl="library://ns.apache.org/flexjs/mdl"
+                 xmlns="http://www.w3.org/1999/xhtml">
+    
+    <mdl:Grid>
+
+        <mdl:List labelField="label">
+            <js:dataProvider>
+                <fx:Array>
+                    <fx:Object label="Install SIM Card"/>
+                    <fx:Object label="Install SIM Card 1"/>
+                    <fx:Object label="Install SIM Card 2"/>
+                </fx:Array>
+            </js:dataProvider>
+        </mdl:List>
+    
+    </mdl:Grid>
+
+</mdl:TabBarPanel>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/1797dc9d/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 b88ffdf..dd4f51a 100644
--- a/examples/flexjs/MDLExample/src/main/flex/MainNavigation.mxml
+++ b/examples/flexjs/MDLExample/src/main/flex/MainNavigation.mxml
@@ -39,6 +39,7 @@ limitations under the License.
             <mdl:TabBarButton text="Buttons" href="#buttons_panel" />
             <mdl:TabBarButton text="TextFields" href="#textfield_panel"/>
             <mdl:TabBarButton text="Toggles" href="#toggles_panel"/>
+            <mdl:TabBarButton text="Lists" href="#lists_panel"/>
             <mdl:TabBarButton text="Other" href="#others_panel"/>
         </mdl:TabBar>
     </mdl:Header>
@@ -63,18 +64,10 @@ limitations under the License.
 
         <local:Toggles id="toggles_panel"/>
 
+        <local:Lists id="lists_panel"/>
+
         <mdl:TabBarPanel id="others_panel">
             
-            <mdl:List labelField="label">
-                <js:dataProvider>
-                    <fx:Array>
-                        <fx:Object label="Install SIM Card"/>
-                        <fx:Object label="Install SIM Card 1"/>
-                        <fx:Object label="Install SIM Card 2"/>
-                    </fx:Array>
-                </js:dataProvider>
-            </mdl:List>
-
             <js:Div text="account_box" className="material-icons" style="color: rgba(0, 0, 0, 0.24);">
                 <js:beads>
                     <mdl:Badge dataBadge="1" overlap="true"/>
@@ -118,10 +111,5 @@ limitations under the License.
             <mdl:Slider minimum="0" maximum="10" value="2" stepSize="2" width="200"/>
         </mdl:TabBarPanel>
         
-        <js:Container className="page-content">
-            
-            <!--<js:Form action="#"> 
-            </js:Form>-->
-        </js:Container>
     </mdl:NavigationLayoutContent>
 </mdl:NavigationLayout>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/1797dc9d/examples/flexjs/MDLExample/src/main/flex/TextFields.mxml
----------------------------------------------------------------------
diff --git a/examples/flexjs/MDLExample/src/main/flex/TextFields.mxml b/examples/flexjs/MDLExample/src/main/flex/TextFields.mxml
index baaef63..8385faf 100644
--- a/examples/flexjs/MDLExample/src/main/flex/TextFields.mxml
+++ b/examples/flexjs/MDLExample/src/main/flex/TextFields.mxml
@@ -26,12 +26,14 @@ limitations under the License.
     <mdl:Grid>
     
         <!-- Text Fields :: https://getmdl.io/components/index.html#textfields-section -->
-        <mdl:TextField id="mdlti" change="mdlfloatingti.text = mdlti.text" className="mdlti_example">
-            <js:beads>
-                <mdl:TextPrompt prompt="Normal Text Field..."/>
-            </js:beads>
-        </mdl:TextField>
-        
+        <js:Form action="#">
+            <mdl:TextField id="mdlti" change="mdlfloatingti.text = mdlti.text" className="mdlti_example">
+                <js:beads>
+                    <mdl:TextPrompt prompt="Normal Text Field..."/>
+                </js:beads>
+            </mdl:TextField>
+        </js:Form>
+
         <mdl:TextField id="mdlfloatingti" floatingLabel= "true">
             <js:beads>
                 <mdl:TextPrompt prompt="Floating Label"/>