Class: Phlexi::Table::Components::ColumnGroup

Inherits:
Base
  • Object
show all
Includes:
Phlexi::Table::Components::Concerns::DisplaysHeader, Phlexi::Table::Components::Concerns::GroupsColumns, Options::Labels
Defined in:
lib/phlexi/table/components/column_group.rb

Direct Known Subclasses

Base::ColumnGroup

Instance Attribute Summary

Attributes inherited from Base

#key, #options, #parent

Instance Method Summary collapse

Methods included from Phlexi::Table::Components::Concerns::GroupsColumns

#column, #initialize

Methods included from Phlexi::Table::Components::Concerns::DisplaysHeader

#header_cell, #header_cell_attributes

Methods included from Options::Labels

#label

Methods inherited from Base

#initialize

Instance Method Details

#alignmentObject



19
# File 'lib/phlexi/table/components/column_group.rb', line 19

def alignment = nil

#colspanObject



9
10
11
# File 'lib/phlexi/table/components/column_group.rb', line 9

def colspan
  @columns.size
end

#dom_idObject



13
14
15
# File 'lib/phlexi/table/components/column_group.rb', line 13

def dom_id
  "#{super}_header_grouping_cell"
end

#typeObject



17
# File 'lib/phlexi/table/components/column_group.rb', line 17

def type = "column_group"