class

Opal::FormModule::TextField

Inherits Opal::FormModule::FormField < Reference < Object

Single-line text input field

Constructors

new(name : String, label : String, default : String = "", placeholder : String = "")
Source

Instance methods

cursor_pos
Source
cursor_pos=(cursor_pos : Int32)
Source
handle_key(key : Terminal::Key) : Bool
Source
placeholder
Source
raw_value
Source
render(buffer : UI::Buffer, x : Int32, y : Int32, width : Int32) : Int32
Source
value
Source
value=(value : String)
Source