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_offsetObject

Returns the value of attribute column_offset.



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

def column_offset
  @column_offset
end

#display_orderObject

Returns the value of attribute display_order.



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

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.



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

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.



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

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