Class: ModsDisplay::ListFieldComponent
- Inherits:
-
FieldComponent
- Object
- ViewComponent::Base
- FieldComponent
- ModsDisplay::ListFieldComponent
- Defined in:
- app/components/mods_display/list_field_component.rb
Instance Method Summary collapse
-
#initialize(field:, list_html_attributes: {}, list_item_html_attributes: {}, **args) ⇒ ListFieldComponent
constructor
A new instance of ListFieldComponent.
Methods inherited from FieldComponent
Constructor Details
#initialize(field:, list_html_attributes: {}, list_item_html_attributes: {}, **args) ⇒ ListFieldComponent
Returns a new instance of ListFieldComponent.
5 6 7 8 9 10 |
# File 'app/components/mods_display/list_field_component.rb', line 5 def initialize(field:, list_html_attributes: {}, list_item_html_attributes: {}, **args) super(field: field, **args) @list_html_attributes = list_html_attributes @list_item_html_attributes = list_item_html_attributes end |