Class: ModsDisplay::ListFieldComponent

Inherits:
FieldComponent
  • Object
show all
Defined in:
app/components/mods_display/list_field_component.rb

Instance Method Summary collapse

Methods inherited from FieldComponent

#format_value, #render?

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