Class: Panda::Core::Admin::Column
- Inherits:
-
Object
- Object
- Panda::Core::Admin::Column
- Defined in:
- app/components/panda/core/admin/table_component.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#cell ⇒ Object
readonly
Returns the value of attribute cell.
-
#label ⇒ Object
readonly
Returns the value of attribute label.
-
#width ⇒ Object
readonly
Returns the value of attribute width.
Instance Method Summary collapse
-
#initialize(label, width = nil, &block) ⇒ Column
constructor
A new instance of Column.
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
#cell ⇒ Object (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 |
#label ⇒ Object (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 |
#width ⇒ Object (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 |