Class: SdrViewComponents::TabForm::HiddenFieldsFormComponent
- Inherits:
-
BaseComponent
- Object
- ViewComponent::Base
- BaseComponent
- SdrViewComponents::TabForm::HiddenFieldsFormComponent
- Defined in:
- app/components/sdr_view_components/tab_form/hidden_fields_form_component.rb
Overview
Renders the one real
Instance Attribute Summary collapse
-
#hidden_fields ⇒ Object
readonly
Returns the value of attribute hidden_fields.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#model ⇒ Object
readonly
Returns the value of attribute model.
-
#url ⇒ Object
readonly
Returns the value of attribute url.
Instance Method Summary collapse
-
#initialize(model:, id:, hidden_fields: [], url: nil) ⇒ HiddenFieldsFormComponent
constructor
A new instance of HiddenFieldsFormComponent.
Methods inherited from BaseComponent
#args_for, #mark_label_required, #merge_actions, #merge_classes
Constructor Details
#initialize(model:, id:, hidden_fields: [], url: nil) ⇒ HiddenFieldsFormComponent
Returns a new instance of HiddenFieldsFormComponent.
12 13 14 15 16 17 18 |
# File 'app/components/sdr_view_components/tab_form/hidden_fields_form_component.rb', line 12 def initialize(model:, id:, hidden_fields: [], url: nil) @model = model @id = id @hidden_fields = hidden_fields @url = url super() end |
Instance Attribute Details
#hidden_fields ⇒ Object (readonly)
Returns the value of attribute hidden_fields.
20 21 22 |
# File 'app/components/sdr_view_components/tab_form/hidden_fields_form_component.rb', line 20 def hidden_fields @hidden_fields end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
20 21 22 |
# File 'app/components/sdr_view_components/tab_form/hidden_fields_form_component.rb', line 20 def id @id end |
#model ⇒ Object (readonly)
Returns the value of attribute model.
20 21 22 |
# File 'app/components/sdr_view_components/tab_form/hidden_fields_form_component.rb', line 20 def model @model end |
#url ⇒ Object (readonly)
Returns the value of attribute url.
20 21 22 |
# File 'app/components/sdr_view_components/tab_form/hidden_fields_form_component.rb', line 20 def url @url end |