Module: Phlexi::Table::Components::Concerns::GroupsColumns
- Extended by:
- ActiveSupport::Concern
- Included in:
- Phlexi::Table::Components::ColumnGroup
- Defined in:
- lib/phlexi/table/components/concerns/groups_columns.rb
Instance Method Summary collapse
Instance Method Details
#column(key) ⇒ Object
21 22 23 |
# File 'lib/phlexi/table/components/concerns/groups_columns.rb', line 21 def column(key, **, &) add_column(parent.column_class.new(key, self, **, &)) end |
#initialize {|_self| ... } ⇒ Object
14 15 16 17 18 19 |
# File 'lib/phlexi/table/components/concerns/groups_columns.rb', line 14 def initialize(*, **, &) super(*, **) @columns = {} yield self if block_given? end |