Sha256: 0f388e454b3ce4616b6820de26fd1aadb4a75dbb5b01bd4a1eaaa0f46bce820e

Contents?: true

Size: 483 Bytes

Versions: 225

Compression:

Stored size: 483 Bytes

Contents

# frozen_string_literal: true

class Avo::Index::GridItemComponent < ViewComponent::Base
  include Avo::ResourcesHelper

  def initialize(resource: nil, reflection: nil, parent_model: nil)
    @resource = resource
    @reflection = reflection
    @grid_fields = resource.get_grid_fields
    @parent_model = parent_model
  end

  private

  def cover
    @grid_fields.cover_field
  end

  def title
    @grid_fields.title_field
  end

  def body
    @grid_fields.body_field
  end
end

Version data entries

225 entries across 225 versions & 1 rubygems

Version Path
avo-2.15.3.pre.1.data.attrs.to.sidebar.items app/components/avo/index/grid_item_component.rb
avo-2.15.2 app/components/avo/index/grid_item_component.rb
avo-2.15.2.pre.1 app/components/avo/index/grid_item_component.rb
avo-2.15.1 app/components/avo/index/grid_item_component.rb
avo-2.15.0 app/components/avo/index/grid_item_component.rb
avo-2.14.3.pre.7.polytranslations1 app/components/avo/index/grid_item_component.rb
avo-2.14.3.pre.6.nosprockets app/components/avo/index/grid_item_component.rb
avo-2.14.3.pre.5.nosprockets app/components/avo/index/grid_item_component.rb
avo-2.14.3.pre.4.tosqlfix app/components/avo/index/grid_item_component.rb
avo-2.14.3.pre.3.jsbundling app/components/avo/index/grid_item_component.rb
avo-2.14.3.pre.2.tailwindcss app/components/avo/index/grid_item_component.rb
avo-2.14.3.pre.1.branding app/components/avo/index/grid_item_component.rb
avo-2.14.2 app/components/avo/index/grid_item_component.rb
avo-2.14.2.pre.1 app/components/avo/index/grid_item_component.rb
avo-2.14.1 app/components/avo/index/grid_item_component.rb
avo-2.14.1.pre.1 app/components/avo/index/grid_item_component.rb
avo-2.14.0 app/components/avo/index/grid_item_component.rb
avo-2.13.6.pre.2 app/components/avo/index/grid_item_component.rb
avo-2.13.6.pre.1 app/components/avo/index/grid_item_component.rb
avo-2.13.5.pre.2 app/components/avo/index/grid_item_component.rb