class
Opal::FormModule::PasswordField
- Opal::FormModule::PasswordField
- Opal::FormModule::TextField
- Opal::FormModule::FormField
- Reference
- Object
Overview
Password input field masked with bullet characters
Defined in:
opal/form/field.crConstructors
Instance Method Summary
Instance methods inherited from class Opal::FormModule::TextField
cursor_pos : Int32
cursor_pos,
cursor_pos=(cursor_pos : Int32)
cursor_pos=,
handle_key(key : Terminal::Key) : Bool
handle_key,
placeholder : String
placeholder,
raw_value : String | Bool | Array(String)
raw_value,
render(buffer : UI::Buffer, x : Int32, y : Int32, width : Int32) : Int32
render,
value : String
value,
value=(value : String)
value=
Constructor methods inherited from class Opal::FormModule::TextField
new(name : String, label : String, default : String = "", placeholder : String = "")
new
Instance methods inherited from class Opal::FormModule::FormField
error : String | Nil
error,
error=(error : String | Nil)
error=,
focused=(focused : Bool)
focused=,
focused? : Bool
focused?,
handle_key(key : Terminal::Key) : Bool
handle_key,
label : String
label,
name : String
name,
raw_value : String | Bool | Array(String)
raw_value,
render(buffer : UI::Buffer, x : Int32, y : Int32, width : Int32) : Int32
render,
value_as_s : String
value_as_s
Constructor methods inherited from class Opal::FormModule::FormField
new(name : String, label : String)
new
Constructor Detail
def self.new(name : String, label : String, default : String = "", placeholder : String = "", mask_char : Char = '•')
#