dialog (cellium v0.1.0)
View SourceDialog widget module for floating, centered containers.
A dialog is a specialized container that defaults to being centered on the screen (or its parent). It draws a border and can have a title, similar to a frame.
Usage
{dialog, [{id, my_dialog}, {title, "Confirm"}, {width, 40}, {height, 10}], [
{text, [], "Are you sure?"},
{hbox, [], [
{button, [{id, yes_btn}], "Yes"},
{button, [{id, no_btn}], "No"}
]}
]}Properties
width(integer): Width of the dialog. Default: 40height(integer): Height of the dialog. Default: 10title(string): Title displayed in the top border.position(atom): Defaults tocentered.
Summary
Functions
Creates a new dialog container with centered position.
Creates a new dialog container with specified width and height.
Renders the dialog. In the first pass, we do nothing to avoid clipping.
Renders the dialog in the overlay pass to draw over the top of other widgets.
Functions
Creates a new dialog container with centered position.
Creates a new dialog container with specified width and height.
Renders the dialog. In the first pass, we do nothing to avoid clipping.
Renders the dialog in the overlay pass to draw over the top of other widgets.