Class: Phlexi::Table::Components::HeaderCell

Inherits:
HTML
  • Object
show all
Defined in:
lib/phlexi/table/components/header_cell.rb

Direct Known Subclasses

SortableHeaderCell

Instance Method Summary collapse

Constructor Details

#initialize(value) ⇒ HeaderCell

Returns a new instance of HeaderCell.



7
8
9
# File 'lib/phlexi/table/components/header_cell.rb', line 7

def initialize(value)
  @value = value
end

Instance Method Details

#view_templateObject



11
12
13
14
15
# File 'lib/phlexi/table/components/header_cell.rb', line 11

def view_template
  div(class: themed(:header_cell_content_wrapper)) do
    plain @value.to_s
  end
end