Repository: flex-asjs
Updated Branches:
  refs/heads/develop 8dc4524eb -> 75da13bf9


Mdl footer heading


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

Branch: refs/heads/develop
Commit: 75da13bf9ef6c40e103d2d000dfa27aa36088db6
Parents: 8dc4524
Author: Carlos Rovira <[email protected]>
Authored: Wed Feb 1 23:08:32 2017 +0100
Committer: Carlos Rovira <[email protected]>
Committed: Wed Feb 1 23:08:32 2017 +0100

----------------------------------------------------------------------
 .../MDLExample/src/main/flex/Footers.mxml       | 30 ++++++++-
 .../org/apache/flex/mdl/beads/DialogTitle.as    |  2 +-
 .../org/apache/flex/mdl/beads/FooterHeading.as  | 71 ++++++++++++++++++++
 .../src/main/resources/mdl-manifest.xml         |  1 +
 4 files changed, 101 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/75da13bf/examples/flexjs/MDLExample/src/main/flex/Footers.mxml
----------------------------------------------------------------------
diff --git a/examples/flexjs/MDLExample/src/main/flex/Footers.mxml 
b/examples/flexjs/MDLExample/src/main/flex/Footers.mxml
index 7b0dae1..c4b1cfc 100644
--- a/examples/flexjs/MDLExample/src/main/flex/Footers.mxml
+++ b/examples/flexjs/MDLExample/src/main/flex/Footers.mxml
@@ -31,7 +31,7 @@ limitations under the License.
         <mdl:Footer mini="true" width="500">
 
             <mdl:FooterLeftSection>
-                <mdl:FooterLogo text="Title"/>
+                <mdl:FooterLogo text="Mini-Footer"/>
                 <mdl:FooterLinkList className="footerMiniLinkListItemRenderer">
                     <mdl:beads>
                         <js:ConstantBinding
@@ -66,6 +66,11 @@ limitations under the License.
             <mdl:FooterMiddleSection>
                 
                 <mdl:FooterDropDownSection>
+                    <js:H1 text="Learning and Support">
+                        <js:beads>
+                            <mdl:FooterHeading/>
+                        </js:beads>
+                    </js:H1>
                     <mdl:FooterLinkList>
                         <mdl:beads>
                             <js:ConstantBinding
@@ -77,6 +82,27 @@ limitations under the License.
                 </mdl:FooterDropDownSection>
 
                 <mdl:FooterDropDownSection>
+                    <js:H1 text="Learning and Support">
+                        <js:beads>
+                            <mdl:FooterHeading/>
+                        </js:beads>
+                    </js:H1>
+                    <mdl:FooterLinkList>
+                        <mdl:beads>
+                            <js:ConstantBinding
+                                sourceID="model"
+                                sourcePropertyName="links"
+                                destinationPropertyName="dataProvider" />
+                        </mdl:beads>
+                    </mdl:FooterLinkList>
+                </mdl:FooterDropDownSection>
+
+                <mdl:FooterDropDownSection>
+                    <js:H1 text="Learning and Support">
+                        <js:beads>
+                            <mdl:FooterHeading/>
+                        </js:beads>
+                    </js:H1>
                     <mdl:FooterLinkList>
                         <mdl:beads>
                             <js:ConstantBinding
@@ -101,7 +127,7 @@ limitations under the License.
             </mdl:FooterBottomSection>
 
         </mdl:Footer>
-        
+
     </mdl:Grid>
 
 </mdl:TabBarPanel>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/75da13bf/frameworks/projects/MaterialDesignLite/src/main/flex/org/apache/flex/mdl/beads/DialogTitle.as
----------------------------------------------------------------------
diff --git 
a/frameworks/projects/MaterialDesignLite/src/main/flex/org/apache/flex/mdl/beads/DialogTitle.as
 
b/frameworks/projects/MaterialDesignLite/src/main/flex/org/apache/flex/mdl/beads/DialogTitle.as
index e7b8128..b0a2961 100644
--- 
a/frameworks/projects/MaterialDesignLite/src/main/flex/org/apache/flex/mdl/beads/DialogTitle.as
+++ 
b/frameworks/projects/MaterialDesignLite/src/main/flex/org/apache/flex/mdl/beads/DialogTitle.as
@@ -24,7 +24,7 @@ package org.apache.flex.mdl.beads
        
        /**
         *  The DialogTitle bead class is used in MDL Dialog to style the title.
-        *  You could add to some heading (H1 to H4) or other text component.
+        *  You could add to some heading (H1 to H6) or other text component.
         *  
         *  @langversion 3.0
         *  @playerversion Flash 10.2

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/75da13bf/frameworks/projects/MaterialDesignLite/src/main/flex/org/apache/flex/mdl/beads/FooterHeading.as
----------------------------------------------------------------------
diff --git 
a/frameworks/projects/MaterialDesignLite/src/main/flex/org/apache/flex/mdl/beads/FooterHeading.as
 
b/frameworks/projects/MaterialDesignLite/src/main/flex/org/apache/flex/mdl/beads/FooterHeading.as
new file mode 100644
index 0000000..2751c54
--- /dev/null
+++ 
b/frameworks/projects/MaterialDesignLite/src/main/flex/org/apache/flex/mdl/beads/FooterHeading.as
@@ -0,0 +1,71 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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.
+//
+////////////////////////////////////////////////////////////////////////////////
+package org.apache.flex.mdl.beads
+{      
+       import org.apache.flex.core.IBead;
+       import org.apache.flex.core.IStrand;
+       import org.apache.flex.core.UIBase;
+       
+       /**
+        *  The FooterHeading bead class is used in MDL Footer Mega Drop Down 
Section to style the heading.
+        *  You could add to some heading (H1 to H6) or other text component.
+        *  
+        *  @langversion 3.0
+        *  @playerversion Flash 10.2
+        *  @playerversion AIR 2.6
+        *  @productversion FlexJS 0.8
+        */
+       public class FooterHeading implements IBead
+       {
+               /**
+                *  constructor.
+                *
+                *  @langversion 3.0
+                *  @playerversion Flash 10.2
+                *  @playerversion AIR 2.6
+                *  @productversion FlexJS 0.8
+                */
+               public function FooterHeading()
+               {
+               }
+
+               private var _strand:IStrand;
+               
+               /**
+                *  @copy org.apache.flex.core.IBead#strand
+                *  
+                *  @langversion 3.0
+                *  @playerversion Flash 10.2
+                *  @playerversion AIR 2.6
+                *  @productversion FlexJS 0.8
+                *  @flexjsignorecoercion HTMLInputElement
+                *  @flexjsignorecoercion org.apache.flex.core.UIBase;
+                */
+               public function set strand(value:IStrand):void
+               {
+                       _strand = value;
+                       
+                       COMPILE::JS
+                       {
+                               var host:UIBase = value as UIBase;
+                host.className = "mdl-mega-footer__heading";
+                       }
+               }
+       }
+}

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/75da13bf/frameworks/projects/MaterialDesignLite/src/main/resources/mdl-manifest.xml
----------------------------------------------------------------------
diff --git 
a/frameworks/projects/MaterialDesignLite/src/main/resources/mdl-manifest.xml 
b/frameworks/projects/MaterialDesignLite/src/main/resources/mdl-manifest.xml
index 9d64a07..c214c06 100644
--- a/frameworks/projects/MaterialDesignLite/src/main/resources/mdl-manifest.xml
+++ b/frameworks/projects/MaterialDesignLite/src/main/resources/mdl-manifest.xml
@@ -114,5 +114,6 @@
     <component id="FooterLinkList" class="org.apache.flex.mdl.FooterLinkList"/>
     <component id="FooterLinkItemRenderer" 
class="org.apache.flex.mdl.itemRenderers.FooterLinkItemRenderer"/>
     <component id="FooterSocialButton" 
class="org.apache.flex.mdl.FooterSocialButton"/>
+    <component id="FooterHeading" 
class="org.apache.flex.mdl.beads.FooterHeading"/>
     
 </componentPackage>

Reply via email to