Icons in MDL example
Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/13a50d6a Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/13a50d6a Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/13a50d6a Branch: refs/heads/feature/mdl Commit: 13a50d6a517815303e552dd31a317569101a7845 Parents: bcfe8a5 Author: Carlos Rovira <[email protected]> Authored: Sun Jan 22 20:35:39 2017 +0100 Committer: Carlos Rovira <[email protected]> Committed: Sun Jan 22 20:35:39 2017 +0100 ---------------------------------------------------------------------- .../flexjs/MDLExample/src/main/flex/Icons.mxml | 37 ++++++++++++++++++++ .../src/main/flex/MainNavigation.mxml | 1 + .../src/main/flex/models/MainNavigationModel.as | 3 +- 3 files changed, 40 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/13a50d6a/examples/flexjs/MDLExample/src/main/flex/Icons.mxml ---------------------------------------------------------------------- diff --git a/examples/flexjs/MDLExample/src/main/flex/Icons.mxml b/examples/flexjs/MDLExample/src/main/flex/Icons.mxml new file mode 100644 index 0000000..3cab0cb --- /dev/null +++ b/examples/flexjs/MDLExample/src/main/flex/Icons.mxml @@ -0,0 +1,37 @@ +<?xml version="1.0"?> +<!-- + +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:mdl="library://ns.apache.org/flexjs/mdl"> + <mdl:Grid> + <mdl:MaterialIconAdd size="18"/> + <mdl:MaterialIconAdd size="24"/> + <mdl:MaterialIconAdd size="36"/> + <mdl:MaterialIconAdd size="48"/> + <mdl:MaterialIconAdd dark="true"/> + + <mdl:MaterialIcon text="book"/> + <mdl:MaterialIconAdd/> + </mdl:Grid> + + <mdl:Grid style="backgroundColor:'#000';"> + <mdl:MaterialIconAdd light="true"/> + <mdl:MaterialIcon text="accessibility" size="48" light="true"/> + </mdl:Grid> +</mdl:TabBarPanel> http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/13a50d6a/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 3548619..947f172 100644 --- a/examples/flexjs/MDLExample/src/main/flex/MainNavigation.mxml +++ b/examples/flexjs/MDLExample/src/main/flex/MainNavigation.mxml @@ -80,6 +80,7 @@ limitations under the License. <local:Menus id="menus_panel"/> <local:Badges id="badges_panel"/> <local:Footers id="footers_panel"/> + <local:Icons id="icons_panel"/> </mdl:NavigationLayoutContent> </mdl:NavigationLayout> \ No newline at end of file http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/13a50d6a/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 26b9a6f..3039538 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("Footers", "footers_panel") + new NavigationLinkVO("Footers", "footers_panel"), + new NavigationLinkVO("Icons", "icons_panel") ]; public function get componentsTabs():Array
