Class: Acts::DataTable::SortableColumns::Renderers::Bootstrap3

Inherits:
Default
  • Object
show all
Defined in:
lib/acts_as_data_table/sortable_columns/renderers/bootstrap3.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/bootstrap3.rb', line 6

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