1Writer

JavaScript Documentation / ui

This object contains methods for interacting with the user.

ui.alert(message, [title], [button1], [button2], ..., [handler])

Displays an alert that can contain text and buttons.

Parameters

Example

ui.hudSuccess([message])

Displays a HUD with a success icon. The HUD will be dismissed automatically.

Parameters

Example

ui.hudError([message])

Displays a HUD with an error icon. The HUD will be dismissed automatically.

Parameters

Example

ui.hudProgress([message], [progress])

Displays a HUD with a progress indicator. The HUD will not be dismissed automatically, calls hudSuccess, hudError or hudDismiss to dismiss the HUD.

Parameters

Example

ui.hudDismiss()

Dismisses the current HUD.

ui.input([title], [text], [placeholder], [keyboardType], handler)

Shows a view with a single text field, used to ask for user input.

Parameters

Example

ui.list([title], [data], [multipleSelection], handler)

Shows a list of values that can be filtered by searching, used to ask for user selection.

Parameters

Example