class

Tui::Dialog

Inherits Tui::Widget / Tui::Reactive / Reference / Object

Constructors

confirm_dialog(title : String, message : String) : Dialog

Confirmation dialog with Yes/No buttons

Source
input_dialog(title : String, prompt : String, default_value : String = "") : Dialog
Source
mask_dialog(title : String, default_value : String = "*") : Dialog

MC-style mask dialog - no buttons, just Enter/Esc

Source
new(title : String, message : String | Nil = nil, id : String | Nil = nil)
Source

Instance methods

add_input(default_value : String = "", placeholder : String = "") : Input
Source
bg_color
Source
bg_color=(bg_color : Color)
Source
border_color
Source
border_color=(border_color : Color)
Source
border_style

Style - MC dialog colors (classic gray dialogs)

Source
border_style=(border_style : Panel::BorderStyle)

Style - MC dialog colors (classic gray dialogs)

Source
button_bg
Source
button_bg=(button_bg : Color)
Source
button_color
Source
button_color=(button_color : Color)
Source
button_focus_attrs
Source
button_focus_attrs=(button_focus_attrs : Attributes)
Source
button_focus_bg
Source
button_focus_bg=(button_focus_bg : Color)
Source
button_focus_color
Source
button_focus_color=(button_focus_color : Color)
Source
buttons
Source
buttons=(buttons : Array(Button))
Source
draggable
Source
draggable=(draggable : Bool)
Source
input_bg
Source
input_bg=(input_bg : Color)
Source
input_color
Source
input_color=(input_color : Color)
Source
input_value
Source
message_color
Source
message_color=(message_color : Color)
Source
min_height
Source
min_height=(min_height : Int32)
Source
min_width
Source
min_width=(min_width : Int32)
Source
on_close
Source
on_event(event : Event) : Bool

Override to handle events for this widget (target/bubble phase) Called after children have had a chance to handle the event

Source
render(buffer : Buffer, clip : Rect) : Nil

Override to render widget content

Source
resizable

Resize/drag settings

Source
resizable=(resizable : Bool)

Resize/drag settings

Source
result
Source
shadow
Source
shadow=(shadow : Bool)
Source
shadow_bg
Source
shadow_bg=(shadow_bg : Color)
Source
shadow_fg
Source
shadow_fg=(shadow_fg : Color)
Source
show

Show dialog and focus input if present

Source
title_color
Source
title_color=(title_color : Color)
Source

Nested types