Class: Blacklight::MetadataFieldLayoutComponent
- Inherits:
-
Component
- Object
- ViewComponent::Base
- Component
- Blacklight::MetadataFieldLayoutComponent
- Defined in:
- app/components/blacklight/metadata_field_layout_component.rb
Direct Known Subclasses
Constant Summary
Constants inherited from Component
Instance Method Summary collapse
-
#initialize(field:, value_tag: 'dd', label_class: 'col-md-3', value_class: 'col-md-9') ⇒ MetadataFieldLayoutComponent
constructor
A new instance of MetadataFieldLayoutComponent.
Methods inherited from Component
Constructor Details
#initialize(field:, value_tag: 'dd', label_class: 'col-md-3', value_class: 'col-md-9') ⇒ MetadataFieldLayoutComponent
Returns a new instance of MetadataFieldLayoutComponent.
18 19 20 21 22 23 24 |
# File 'app/components/blacklight/metadata_field_layout_component.rb', line 18 def initialize(field:, value_tag: 'dd', label_class: 'col-md-3', value_class: 'col-md-9') @field = field @key = @field.key.parameterize @label_class = label_class @value_tag = value_tag @value_class = value_class end |