class Aureus::Components::DataTableHead
Public Class Methods
new()
click to toggle source
# File lib/aureus/components/data_table.rb, line 33 def initialize @columns = Array.new end
Public Instance Methods
render()
click to toggle source
# File lib/aureus/components/data_table.rb, line 41 def render text '' # actions content_tag 'thead' do content_tag 'tr', compact_render(*@columns) end end
text(name)
click to toggle source
# File lib/aureus/components/data_table.rb, line 37 def text(name) @columns << DataTableHeadColumn.new(name) end