WTUI Docs

WTUI  1.0.0

WTUI Docs > WTUI > WTUI.Dialog
Search:
 
Filters

Class WTUI.Dialog

A Modal Window

Tag

<wtui:dialog/>

<wtui:dialog/>

Example
<wtui:dialog width="600" height="500" id="dialogid">
  <wtui:paragraph>
    An Example Dialog
  </wtui:paragraph>
  <wtui:dialogbuttons>
    <wtui:button text="OK"/>
    <wtui:button text="Cancel"/>
  </wtui:dialogbuttons>
</wtui:dialog>
Parameters:
width <Number> (optional)
height <Number> (optional)

Methods

close

void close ( )

Close the dialog

Returns: void

setHeight

void setHeight ( height )

Set the height of the dialog

Parameters:
height <Number> The new height of the dialog
Returns: void

setText

void setText ( text )

Set the title for the dialog

Parameters:
text <String> The text for the title
Returns: void

setWidth

void setWidth ( width )

Set the width of the dialog

Parameters:
width <Number> The new width of the dialog
Returns: void

show

void show ( )

Show the dialog if it is not visible

Returns: void

WTUI