Sha256: ca7638f94858e332b35ff1b2d5d3671032776be3ce068f2fdeb55afbea7bffe2

Contents?: true

Size: 289 Bytes

Versions: 9

Compression:

Stored size: 289 Bytes

Contents

# frozen_string_literal: true

class Avo::Index::FieldWrapperComponent < ViewComponent::Base
  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
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
avo-0.5.0.beta9 app/components/avo/index/field_wrapper_component.rb
avo-0.5.0.beta8 app/components/avo/index/field_wrapper_component.rb
avo-0.5.0.beta7 app/components/avo/index/field_wrapper_component.rb
avo-0.5.0.beta6 app/components/avo/index/field_wrapper_component.rb
avo-0.5.0.beta5 app/components/avo/index/field_wrapper_component.rb
avo-0.5.0.beta4 app/components/avo/index/field_wrapper_component.rb
avo-0.5.0.beta3 app/components/avo/index/field_wrapper_component.rb
avo-0.5.0.beta2 app/components/avo/index/field_wrapper_component.rb
avo-0.5.0.beta1 app/components/avo/index/field_wrapper_component.rb