Class: PandaCms::Admin::Column

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

Direct Known Subclasses

TagColumn

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(label, &block) ⇒ Column

Returns a new instance of Column.



29
30
31
32
# File 'app/components/panda_cms/admin/table_component.rb', line 29

def initialize(label, &block)
  @label = label
  @cell = block
end

Instance Attribute Details

#cellObject (readonly)

Returns the value of attribute cell.



27
28
29
# File 'app/components/panda_cms/admin/table_component.rb', line 27

def cell
  @cell
end

#labelObject (readonly)

Returns the value of attribute label.



27
28
29
# File 'app/components/panda_cms/admin/table_component.rb', line 27

def label
  @label
end