Class: UI::TextInput
- Inherits:
-
Control
- Object
- Control
- UI::TextInput
- Includes:
- Eventable
- Defined in:
- flow/ui/text_input.rb
Instance Attribute Summary (collapse)
-
- (Color) color
The current value of color.
-
- (Font) font
The current value of font.
-
- (String) placeholder
The current value of placeholder.
-
- (Object) secure
The current value of secure.
-
- (String) text
The current value of text.
-
- (Object) text_alignment
The current value of text_alignment.
Instance Method Summary (collapse)
-
- (Object) on(event, &block)
Execute a block when a certain event happens.
Methods included from Eventable
Instance Attribute Details
- (Color) color
Returns the current value of color
8 9 10 |
# File 'flow/ui/text_input.rb', line 8 def color @color end |
- (Font) font
Returns the current value of font
8 9 10 |
# File 'flow/ui/text_input.rb', line 8 def font @font end |
- (String) placeholder
Returns the current value of placeholder
8 9 10 |
# File 'flow/ui/text_input.rb', line 8 def placeholder @placeholder end |
- (Object) secure
Returns the current value of secure
8 9 10 |
# File 'flow/ui/text_input.rb', line 8 def secure @secure end |
- (String) text
Returns the current value of text
8 9 10 |
# File 'flow/ui/text_input.rb', line 8 def text @text end |
- (Object) text_alignment
Returns the current value of text_alignment
8 9 10 |
# File 'flow/ui/text_input.rb', line 8 def text_alignment @text_alignment end |
Instance Method Details
- (Object) on(event, &block)
Execute a block when a certain event happens. Possible event values:
:on_change, :on_focus, :on_blur
|
# File 'flow/ui/text_input.rb', line 11
|