royale-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From yish...@apache.org
Subject [royale-asjs] branch feature/revert-refactor updated: Add toggle menu method to mdl menu
Date Tue, 07 Aug 2018 11:00:04 GMT
This is an automated email from the ASF dual-hosted git repository.

yishayw pushed a commit to branch feature/revert-refactor
in repository https://gitbox.apache.org/repos/asf/royale-asjs.git


The following commit(s) were added to refs/heads/feature/revert-refactor by this push:
     new 28ff515  Add toggle menu method to mdl menu
28ff515 is described below

commit 28ff51559ec2d2e72f8c627b850054790b8124dc
Author: DESKTOP-RH4S838\Yishay <yishayjobs@hotmail.com>
AuthorDate: Tue Aug 7 13:59:50 2018 +0300

    Add toggle menu method to mdl menu
---
 .../src/main/royale/org/apache/royale/mdl/Menu.as                 | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/frameworks/projects/MaterialDesignLite/src/main/royale/org/apache/royale/mdl/Menu.as
b/frameworks/projects/MaterialDesignLite/src/main/royale/org/apache/royale/mdl/Menu.as
index 4c9bbd1..02f929b 100644
--- a/frameworks/projects/MaterialDesignLite/src/main/royale/org/apache/royale/mdl/Menu.as
+++ b/frameworks/projects/MaterialDesignLite/src/main/royale/org/apache/royale/mdl/Menu.as
@@ -229,5 +229,13 @@ package org.apache.royale.mdl
         {
             return _classList.compute() + super.computeFinalClassNames();
         }
+		
+		public function toggle():void
+		{
+			COMPILE::JS
+			{
+				element["MaterialMenu"]["toggle"]();
+			}
+		}
     }
 }


Mime
View raw message