Content:
- Methods

A modal is a popup with more controls that can be added.

mdl = MUI.CreateModal( title, body, okTxt, cancelTxt, show, options ) → Object

You can display a modal with text directly by providing a body text. You can use the "Full" as options if you want your modal to occupy the whole screen.

Example - Basic click to expand contents 

If you want to add your custom controls on the modal such as images and buttons, you can
do so by passing an empty string or null to the body text param

Example - Custom Controls click to expand contents 

Use SetOnTouch method to call a function when the user touches the control buttons.

Example - With Callback click to expand contents 

Example - Full Modal click to expand contents 

Methods

The following methods are available on the Modal object:

Focus()
GetAbsHeight() → Number: integer
GetAbsWidth() → Number: integer
GetHeight( options ) → Number
GetLayout() → app object: Layout
GetLeft( options ) → Number
GetParent() → app object
GetPosition( options ) → Object: { left, top, right, bottom }
GetTop( options ) → Number
GetVisibility() → String: “Show” or “Hide” or “Gone”
GetWidth( options ) → Number
Gone()
Hide()
IsEnabled() → Boolean
IsOverlap( obj, depth ) → Boolean
IsVisible() → Boolean
Show()