You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@royale.apache.org by Harbs <ha...@gmail.com> on 2018/09/21 12:13:16 UTC

Re: [royale-asjs] branch develop updated: Added onClose event to MDL Dialog

Please see the discussion here:
https://github.com/apache/royale-asjs/commit/af0233ef973f72a8d1387cf386c100b42c037c57#commitcomment-30591275 <https://github.com/apache/royale-asjs/commit/af0233ef973f72a8d1387cf386c100b42c037c57#commitcomment-30591275>

What do folks think?
Thanks,
Harbs

> On Sep 21, 2018, at 2:23 PM, harbs@apache.org wrote:
> 
> This is an automated email from the ASF dual-hosted git repository.
> 
> harbs pushed a commit to branch develop
> in repository https://gitbox.apache.org/repos/asf/royale-asjs.git
> 
> 
> The following commit(s) were added to refs/heads/develop by this push:
>     new af0233e  Added onClose event to MDL Dialog
> af0233e is described below
> 
> commit af0233ef973f72a8d1387cf386c100b42c037c57
> Author: Harbs <ha...@in-tools.com>
> AuthorDate: Fri Sep 21 14:23:45 2018 +0300
> 
>    Added onClose event to MDL Dialog
> ---
> .../src/main/royale/org/apache/royale/mdl/Dialog.as               | 8 ++++++--
> 1 file changed, 6 insertions(+), 2 deletions(-)
> 
> diff --git a/frameworks/projects/MaterialDesignLite/src/main/royale/org/apache/royale/mdl/Dialog.as b/frameworks/projects/MaterialDesignLite/src/main/royale/org/apache/royale/mdl/Dialog.as
> index ff7ea62..6a592b2 100644
> --- a/frameworks/projects/MaterialDesignLite/src/main/royale/org/apache/royale/mdl/Dialog.as
> +++ b/frameworks/projects/MaterialDesignLite/src/main/royale/org/apache/royale/mdl/Dialog.as
> @@ -21,13 +21,16 @@ package org.apache.royale.mdl
> 	import org.apache.royale.html.Group;
> 	import org.apache.royale.mdl.Application;
> 	import org.apache.royale.core.IPopUp;
> +	import org.apache.royale.events.Event;
> 
>     COMPILE::JS
>     {
> -        import org.apache.royale.core.WrappedHTMLElement;
> -		import org.apache.royale.html.util.addElementToWrapper;
> +      import org.apache.royale.core.WrappedHTMLElement;
> +			import org.apache.royale.html.util.addElementToWrapper;
>     }
> 
> +    [Event(name="onClose", type="org.apache.royale.events.Event")]
> +
> 	/**
> 	 *  The MDL Dialog class creates modal windows for dedicated user input.
> 	 *  The Material Design Lite (MDL) dialog component allows for verification of user actions, simple data input,
> @@ -171,6 +174,7 @@ package org.apache.royale.mdl
> 			{
> 				dialog.close();
> 			}
> +			dispatchEvent(new Event("onClose"));
> 		}
> 		
> 		private var _open:Boolean;
>