Class: PandaCms::Admin::TableComponent
- Inherits:
-
ViewComponent::Base
- Object
- ViewComponent::Base
- PandaCms::Admin::TableComponent
- Defined in:
- app/components/panda_cms/admin/table_component.rb
Instance Attribute Summary collapse
-
#columns ⇒ Object
readonly
Returns the value of attribute columns.
Instance Method Summary collapse
- #column(label) ⇒ Object
-
#initialize(term:, rows:) ⇒ TableComponent
constructor
A new instance of TableComponent.
Constructor Details
#initialize(term:, rows:) ⇒ TableComponent
Returns a new instance of TableComponent.
8 9 10 11 12 |
# File 'app/components/panda_cms/admin/table_component.rb', line 8 def initialize(term:, rows:) @term = term @rows = rows @columns = [] end |
Instance Attribute Details
#columns ⇒ Object (readonly)
Returns the value of attribute columns.
6 7 8 |
# File 'app/components/panda_cms/admin/table_component.rb', line 6 def columns @columns end |