Sha256: 9af711098f82c89e0e631583ce6efea2819fbc59c8f6935b17d9fc3422ad6a90

Contents?: true

Size: 446 Bytes

Versions: 25

Compression:

Stored size: 446 Bytes

Contents

class Avo::Row
  include Avo::Concerns::IsResourceItem
  include Avo::Concerns::VisibleItems

  class_attribute :item_type, default: :row

  attr_reader :view
  attr_accessor :items_holder

  delegate :items, :add_item, to: :items_holder

  def initialize(view: nil)
    @view = view
    @items_holder = Avo::ItemsHolder.new
  end

  def hydrate(view: nil, **args)
    @view = view

    self
  end

  def has_items?
    @items.present?
  end
end

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
avo-2.53.0 lib/avo/row.rb
avo-2.52.0 lib/avo/row.rb
avo-2.49.0 lib/avo/row.rb
avo-2.48.0 lib/avo/row.rb
avo-2.47.0 lib/avo/row.rb
avo-2.46.0 lib/avo/row.rb
avo-2.45.0 lib/avo/row.rb
avo-2.44.0 lib/avo/row.rb
avo-2.43.0 lib/avo/row.rb
avo-2.42.2 lib/avo/row.rb
avo-2.42.1 lib/avo/row.rb
avo-2.42.0 lib/avo/row.rb
avo-2.41.0 lib/avo/row.rb
avo-2.40.0 lib/avo/row.rb
avo-2.39.0 lib/avo/row.rb
avo-2.38.0 lib/avo/row.rb
avo-2.37.2 lib/avo/row.rb
avo-2.37.1 lib/avo/row.rb
avo-2.37.0 lib/avo/row.rb
avo-2.36.3 lib/avo/row.rb