class

Tui::Input

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

Constructors

new(value : String = "", placeholder : String = "", id : String | Nil = nil, password : Bool = false)
Source

Instance methods

focus_style
Source
focus_style=(focus_style : Style)
Source
on_change
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
on_submit
Source
password
Source
password=(value : Bool) : Bool
Source
placeholder
Source
placeholder=(value : String) : String
Source
placeholder_style
Source
placeholder_style=(placeholder_style : Style)
Source
render(buffer : Buffer, clip : Rect) : Nil

Override to render widget content

Source
style
Source
style=(style : Style)
Source
value
Source
value=(value : String) : String
Source
watch_password(value : Bool)

Override this to react to changes

Source
watch_placeholder(value : String)

Override this to react to changes

Source
watch_value(new_value : String)

Override this to react to changes

Source