Back

CreateDivider

Hello World
Content:
- Methods

Creates a divider which you can add to your layout.

dvd = MUI.CreateDivider( height ) → Object

Example - Basic & Light

cfg.Light
cfg.MUI

function OnStart()
{
    colors = MUI.colors.teal
    app.InitializeUIKit(colors.teal)

    lay = MUI.CreateLayout("Linear", "VCenter,FillXY")

        div = MUI.CreateDivider()
        lay.AddChild(div)

    app.AddLayout(lay)

    var text = "You can undone this process."
    dlg = MUI.CreateDialog("Remove message", text, "REMOVE")
}
Copy All       Run      

Methods

The following methods are available on the Divider object:

GetVisibility() → String: “Show” or “Hide” or “Gone”
Hide()
IsEnabled() → Boolean
IsVisible() → Boolean
Show()
Boolean
Number: Optional
String: “Show” or “Hide” or “Gone”
dvd.GetVisibility
Returns the current visibility state of the control. The Values are:
Show: visible
Hide: invisible but still consuming space
Gone: invisible and not consuming space
dvd.Hide
Hide the control but keep the layout space free.
dvd.IsEnabled
Returns whether the control is currently useable by the user.
dvd.IsVisible
Returns whether the control is currently visible to the user, ignoring overlaying controls.
dvd.SetEnabled
En/Disable the control physically and visually so that the user can/can not access the control. Events like OnTouch will still be fired.
dvd.SetVisibility
Change the visibility of the control to one of the available modes:
Show: visible
Hide: invisible but still consuming space
Gone: invisible and not consuming space
dvd.Show
Set the visibility of the control to “Show”.