Class: Avo::Index::FieldWrapperComponent
- Inherits:
-
ViewComponent::Base
- Object
- ViewComponent::Base
- Avo::Index::FieldWrapperComponent
- Defined in:
- app/components/avo/index/field_wrapper_component.rb
Instance Method Summary collapse
-
#initialize(field: nil, dash_if_blank: true, **args) ⇒ FieldWrapperComponent
constructor
A new instance of FieldWrapperComponent.
Constructor Details
#initialize(field: nil, dash_if_blank: true, **args) ⇒ FieldWrapperComponent
Returns a new instance of FieldWrapperComponent.
4 5 6 7 8 9 |
# File 'app/components/avo/index/field_wrapper_component.rb', line 4 def initialize(field: nil, dash_if_blank: true, **args) @field = field @dash_if_blank = dash_if_blank @classes = args[:class].present? ? args[:class] : "" @args = args end |