Class: Acts::DataTable::SortableColumns::Renderers::Bootstrap2

Inherits:
Default
  • Object
show all
Defined in:
lib/acts_as_data_table/sortable_columns/renderers/bootstrap2.rb

Instance Method Summary collapse

Methods inherited from Default

#caption, #caption_link, #direction_link, #initialize, #to_html

Constructor Details

This class inherits a constructor from Acts::DataTable::SortableColumns::Renderers::Default

Instance Method Details

#direction_indicatorObject



6
7
8
9
10
11
12
# File 'lib/acts_as_data_table/sortable_columns/renderers/bootstrap2.rb', line 6

def direction_indicator
  if @sortable.direction == 'ASC'
    @action_view.(:i, nil, :class => 'icon-sort-by-alphabet')
  else
    @action_view.(:i, nil, :class => 'icon-sort-by-alphabet-alt')
  end
end