Module: TableSortable::Controller

Extended by:
ActiveSupport::Concern
Defined in:
lib/table_sortable/controller.rb

Defined Under Namespace

Modules: ClassMethods

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#column_offset ⇒ Object

Returns the value of attribute column_offset.



90
91
92
# File 'lib/table_sortable/controller.rb', line 90

def column_offset
  @column_offset
end

#display_order ⇒ Object

Returns the value of attribute display_order.



90
91
92
# File 'lib/table_sortable/controller.rb', line 90

def display_order
  @display_order
end

#filter_order=(value) ⇒ Object

Sets the attribute filter_order

Parameters:

  • value —

    the value to set the attribute filter_order to.



89
90
91
# File 'lib/table_sortable/controller.rb', line 89

def filter_order=(value)
  @filter_order = value
end

#sort_order=(value) ⇒ Object

Sets the attribute sort_order

Parameters:

  • value —

    the value to set the attribute sort_order to.



89
90
91
# File 'lib/table_sortable/controller.rb', line 89

def sort_order=(value)
  @sort_order = value
end

Instance Method Details

#define_column(col_name, *options) ⇒ Object



32
33
34
35
# File 'lib/table_sortable/controller.rb', line 32

def define_column(col_name, *options)
  options = options.extract_options!
  @columns.add(col_name, options)
end