A modal is a popup with more controls that can be added.
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.
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
Use SetOnTouch method to call a function when the user touches the control buttons.
Methods
The following methods are available on the Modal object:
Focus()
GetAbsHeight() → Number: integer
GetAbsWidth() → Number: integer
GetParent() → app object
Gone()
Hide()
IsEnabled() → Boolean
IsVisible() → Boolean
SetEnabled(
enable )
Show()