flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bigosma...@apache.org
Subject git commit: [flex-asjs] [refs/heads/feature/fontawesome] - Add support for border
Date Sun, 08 Jan 2017 08:18:02 GMT
Repository: flex-asjs
Updated Branches:
  refs/heads/feature/fontawesome 4d34b4820 -> 62beb260e


Add support for border


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

Branch: refs/heads/feature/fontawesome
Commit: 62beb260e3c64b0cc7f6afa123c3cddca96484ed
Parents: 4d34b48
Author: OmPrakash Muppirala <bigosmallm@gmail.com>
Authored: Sun Jan 8 00:17:51 2017 -0800
Committer: OmPrakash Muppirala <bigosmallm@gmail.com>
Committed: Sun Jan 8 00:17:51 2017 -0800

----------------------------------------------------------------------
 .../flex/itemRenderers/MemberItemRenderer.mxml    |  7 ++++---
 .../flex/org/apache/flex/fa/FontAwesomeIcon.as    | 18 ++++++++++++++++++
 2 files changed, 22 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/62beb260/examples/flexjs/FlexTeamPage_MDL/src/main/flex/itemRenderers/MemberItemRenderer.mxml
----------------------------------------------------------------------
diff --git a/examples/flexjs/FlexTeamPage_MDL/src/main/flex/itemRenderers/MemberItemRenderer.mxml
b/examples/flexjs/FlexTeamPage_MDL/src/main/flex/itemRenderers/MemberItemRenderer.mxml
index 09484b2..d32fc78 100644
--- a/examples/flexjs/FlexTeamPage_MDL/src/main/flex/itemRenderers/MemberItemRenderer.mxml
+++ b/examples/flexjs/FlexTeamPage_MDL/src/main/flex/itemRenderers/MemberItemRenderer.mxml
@@ -79,12 +79,13 @@ limitations under the License.
             </mdl:Button>
             <mdl:Button colored="true" fab="true" ripple="true" raised="false">
                 <mdl:materialIcon>
-                    <fa:FontAwesomeIcon iconType="{FontAwesomeIconType.GLASS}" size="{FontAwesomeIconSize.X1}"
-                    fixedWidth="true"/>
+                    <fa:FontAwesomeIcon iconType="{FontAwesomeIconType.GLASS}"
+                                        fixedWidth="true"
+                                        showBorder="true"
+                    />
                 </mdl:materialIcon>
             </mdl:Button>
         </mdl:CardActions>
     </mdl:Card>
-
 </mdl:ListItemRenderer>
 

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/62beb260/frameworks/projects/FontAwesome/src/main/flex/org/apache/flex/fa/FontAwesomeIcon.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/FontAwesome/src/main/flex/org/apache/flex/fa/FontAwesomeIcon.as
b/frameworks/projects/FontAwesome/src/main/flex/org/apache/flex/fa/FontAwesomeIcon.as
index 62f3189..a2a8ed1 100644
--- a/frameworks/projects/FontAwesome/src/main/flex/org/apache/flex/fa/FontAwesomeIcon.as
+++ b/frameworks/projects/FontAwesome/src/main/flex/org/apache/flex/fa/FontAwesomeIcon.as
@@ -64,6 +64,7 @@ package org.apache.flex.fa
 		protected var _iconType:String;
 		protected var _size:String;
         protected var _fixedWidth:Boolean;
+        protected var _showBorder:Boolean;
 
         /**
          * @flexjsignorecoercion org.apache.flex.core.WrappedHTMLElement
@@ -151,6 +152,23 @@ package org.apache.flex.fa
                 element.classList.toggle('fa-fw',_fixedWidth);
             }
         }
+
+        /**
+         * Show a border around the icon
+         */
+        public function get showBorder():Boolean
+        {
+            return _showBorder;
+        }
+
+        public function set showBorder(value:Boolean)
+        {
+            _showBorder = value;
+            COMPILE::JS
+            {
+                element.classList.toggle('fa-border',_showBorder)
+            }
+        }
 		
     }
 }


Mime
View raw message