Class: Trestle::Table::ActionsColumn::Renderer

Inherits:
Column::Renderer show all
Defined in:
lib/trestle/table/actions_column.rb

Instance Method Summary collapse

Methods inherited from Column::Renderer

#data, #initialize, #render, #render?

Constructor Details

This class inherits a constructor from Trestle::Table::Column::Renderer

Instance Method Details

#classesObject


69
70
71
# File 'lib/trestle/table/actions_column.rb', line 69

def classes
  super + ["actions"]
end

#content(instance) ⇒ Object


73
74
75
# File 'lib/trestle/table/actions_column.rb', line 73

def content(instance)
  @template.render_toolbar(@column.toolbar, instance, @table.admin)
end

#headerObject


65
66
67
# File 'lib/trestle/table/actions_column.rb', line 65

def header
  options[:header]
end