Class: UI::TextInput

Inherits:
Control
  • Object
show all
Includes:
Eventable
Defined in:
flow/ui/text_input.rb

Instance Attribute Summary (collapse)

Instance Method Summary (collapse)

Methods included from Eventable

#__events__, #trigger

Instance Attribute Details

- (Color) color

Returns the current value of color

Returns:

  • (Color)

    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

Returns:

  • (Font)

    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

Returns:

  • (String)

    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

Returns:

  • (Object)

    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

Returns:

  • (String)

    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

Returns:

  • (Object)

    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