Class: PandaCms::Admin::TagColumn

Inherits:
Column
  • Object
show all
Defined in:
app/components/panda_cms/admin/table_component.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(label, &block) ⇒ TagColumn

Returns a new instance of TagColumn.



38
39
40
41
# File 'app/components/panda_cms/admin/table_component.rb', line 38

def initialize(label, &block)
  @label = label
  @cell = PandaCms::Admin::TagComponent.new(status: block)
end

Instance Attribute Details

#cellObject (readonly)

Returns the value of attribute cell.



36
37
38
# File 'app/components/panda_cms/admin/table_component.rb', line 36

def cell
  @cell
end

#labelObject (readonly)

Returns the value of attribute label.



36
37
38
# File 'app/components/panda_cms/admin/table_component.rb', line 36

def label
  @label
end