Class: Trek::Form::GroupComponent
- Inherits:
-
ViewComponent::Form::FieldComponent
- Object
- ViewComponent::Form::FieldComponent
- Trek::Form::GroupComponent
- Includes:
- CssClassesHelpers
- Defined in:
- app/components/trek/form/group_component.rb
Instance Attribute Summary collapse
-
#lookup ⇒ Object
readonly
Returns the value of attribute lookup.
-
#model_name ⇒ Object
readonly
Returns the value of attribute model_name.
-
#object ⇒ Object
readonly
Returns the value of attribute object.
Instance Method Summary collapse
-
#initialize(form, object_name, method_name, options = {}) ⇒ GroupComponent
constructor
A new instance of GroupComponent.
Methods included from CssClassesHelpers
#class_for, #class_names_for, #root_class
Methods included from IdentifierHelper
Constructor Details
#initialize(form, object_name, method_name, options = {}) ⇒ GroupComponent
Returns a new instance of GroupComponent.
12 13 14 15 16 17 18 19 20 21 22 23 |
# File 'app/components/trek/form/group_component.rb', line 12 def initialize(form, object_name, method_name, = {}) @label = .delete(:label) @hint = .delete(:hint) @lookup = .delete(:lookup) @classnames = .delete(:classnames) @multiple = .delete(:multiple) @content_id = .delete(:content_id) @model_name = .delete(:model_name) @object_name = object_name super end |
Instance Attribute Details
#lookup ⇒ Object (readonly)
Returns the value of attribute lookup.
10 11 12 |
# File 'app/components/trek/form/group_component.rb', line 10 def lookup @lookup end |
#model_name ⇒ Object (readonly)
Returns the value of attribute model_name.
10 11 12 |
# File 'app/components/trek/form/group_component.rb', line 10 def model_name @model_name end |
#object ⇒ Object (readonly)
Returns the value of attribute object.
10 11 12 |
# File 'app/components/trek/form/group_component.rb', line 10 def object @object end |