⌂
›
Reference
›
AlertDialog
AlertDialog
A Material modal dialog for confirmation and information flows.
Example
dialog = nil
dialog = alert_dialog(
open: false,
modal: true,
title: text(value: "Hello"),
content: text(value: "Hello from Ruflet"),
actions: [
text_button(
content: text(value: "OK"),
on_click: ->(_e) { page.update(dialog, open: false) }
)
]
)
Common properties
openmodaltitlecontentactionsiconbgcoloron_dismiss
Usage
Show the dialog with:
page.show_dialog(dialog)
Notes
actionstakes an array of controlstitleandcontentare usuallytext(...)controls