class

Tui::MaskedInput

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

Constructors

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

Instance methods

clear
Source
complete?

Check if mask is complete

Source
cursor_style
Source
cursor_style=(cursor_style : Style)
Source
formatted_value

Get formatted value (with mask)

Source
mask
Source
mask=(mask : String)
Source
min_size
Source
on_change

Callback when value changes

Source
on_complete

Callback when all fields are filled

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
placeholder_char
Source
placeholder_char=(placeholder_char : Char)
Source
placeholder_style
Source
placeholder_style=(placeholder_style : Style)
Source
raw_value

Get raw value (only user input, no mask chars)

Source
raw_value=(input : String) : Nil

Set raw value

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

Override to render widget content

Source
style
Source
style=(style : Style)
Source