Module: Phlexi::Table::Components::Concerns::DisplaysHeader
- Extended by:
- ActiveSupport::Concern
- Included in:
- ActionsColumn, Phlexi::Table::Components::Column, Phlexi::Table::Components::ColumnGroup
- Defined in:
- lib/phlexi/table/components/concerns/displays_header.rb
Instance Method Summary collapse
Instance Method Details
#colspan ⇒ Object
25 |
# File 'lib/phlexi/table/components/concerns/displays_header.rb', line 25 def colspan = 1 |
#header_cell ⇒ Object
10 11 12 |
# File 'lib/phlexi/table/components/concerns/displays_header.rb', line 10 def header_cell HeaderCell.new(label) end |
#header_cell_attributes ⇒ Object
14 15 16 17 18 19 20 21 22 23 |
# File 'lib/phlexi/table/components/concerns/displays_header.rb', line 14 def header_cell_attributes attributes = @attributes.dup attributes[:id] = "#{dom_id}_header_cell" attributes[:class] = tokens( attributes[:class], themed(:"align_#{alignment}"), themed(:"#{type}_column") ) attributes end |