Class: Panda::Core::Admin::Column

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

Direct Known Subclasses

TagColumn

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(label, width = nil, &block) ⇒ Column

Returns a new instance of Column.



110
111
112
113
114
# File 'app/components/panda/core/admin/table_component.rb', line 110

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

Instance Attribute Details

#cellObject (readonly)

Returns the value of attribute cell.



108
109
110
# File 'app/components/panda/core/admin/table_component.rb', line 108

def cell
  @cell
end

#labelObject (readonly)

Returns the value of attribute label.



108
109
110
# File 'app/components/panda/core/admin/table_component.rb', line 108

def label
  @label
end

#widthObject (readonly)

Returns the value of attribute width.



108
109
110
# File 'app/components/panda/core/admin/table_component.rb', line 108

def width
  @width
end