Class: UU::OS::Form::Input
- Inherits:
-
GVC::Component
- Object
- GVC::Component
- UU::OS::Form::Input
- Defined in:
- uu_os_gvc-0.28.16/lib/uu/os/form/input.rb
Overview
Common input component.
Direct Known Subclasses
Checkbox, Choice, ColorPicker, Date, File, IconPicker, Radio, Reference, Text, Textarea
Instance Attribute Summary (collapse)
-
- (Object) data
Input data binding.
-
- (Object) disabled
Flag if component is disabled.
-
- (Object) read_only
Flag if component is read only.
-
- (Object) required
Flag if component input is required.
-
- (Object) submit_value_change
Flag whether to send value_change events for this component.
-
- (Object) value
Input value.
-
- (Object) value_change_action_uri
Uri triggered instead of valueChange action when component changes value.
-
- (Object) width
readonly
Input width.
Attributes inherited from GVC::Component
#attributes, #code, #component_type, #form, #height, #id, #name
Method Summary
Methods inherited from GVC::Component
#add_message, #focus, #initialize, #messages
Constructor Details
This class inherits a constructor from UU::OS::GVC::Component
Instance Attribute Details
- (Object) data
Input data binding.
17 18 19 |
# File 'uu_os_gvc-0.28.16/lib/uu/os/form/input.rb', line 17 def data @data end |
- (Object) disabled
Flag if component is disabled.
26 27 28 |
# File 'uu_os_gvc-0.28.16/lib/uu/os/form/input.rb', line 26 def disabled @disabled end |
- (Object) read_only
Flag if component is read only.
20 21 22 |
# File 'uu_os_gvc-0.28.16/lib/uu/os/form/input.rb', line 20 def read_only @read_only end |
- (Object) required
Flag if component input is required.
23 24 25 |
# File 'uu_os_gvc-0.28.16/lib/uu/os/form/input.rb', line 23 def required @required end |
- (Object) submit_value_change
Flag whether to send value_change events for this component.
29 30 31 |
# File 'uu_os_gvc-0.28.16/lib/uu/os/form/input.rb', line 29 def submit_value_change @submit_value_change end |
- (Object) value
Input value.
14 15 16 |
# File 'uu_os_gvc-0.28.16/lib/uu/os/form/input.rb', line 14 def value @value end |
- (Object) value_change_action_uri
Uri triggered instead of valueChange action when component changes value. value_change_action_uri is triggerd only if submit_value_change is enabled.
32 33 34 |
# File 'uu_os_gvc-0.28.16/lib/uu/os/form/input.rb', line 32 def value_change_action_uri @value_change_action_uri end |
- (Object) width (readonly)
Input width.
11 12 13 |
# File 'uu_os_gvc-0.28.16/lib/uu/os/form/input.rb', line 11 def width @width end |