Skip to content

Latest commit

 

History

History
37 lines (23 loc) · 845 Bytes

Alert.md

File metadata and controls

37 lines (23 loc) · 845 Bytes

Alert

Presents a native alert and returns the selected response.

<Alert ... />

Overview

This component is backed by the platform control or container. Prefer its XML tag in an .etlua template; keep view-tree construction out of controllers.

Topics

Properties

Name Type Required Description
buttons table optional Alert button titles, in display order.
message string optional Explanatory message shown in an alert.
title value optional Component-specific setting passed to the native control.

Example

<Alert title="Example" />

Platform notes

  • AppKit uses the AppKit implementation.

Source: lua/embedded/AppKit.lua:1754 (AppKit.Alert)