Module: TableSortable::Controller
- Extended by:
- ActiveSupport::Concern
- Defined in:
- lib/table_sortable/controller.rb
Defined Under Namespace
Modules: ClassMethods
Instance Attribute Summary collapse
-
#column_offset ⇒ Object
Returns the value of attribute column_offset.
-
#display_order ⇒ Object
Returns the value of attribute display_order.
-
#filter_order ⇒ Object
writeonly
Sets the attribute filter_order.
-
#sort_order ⇒ Object
writeonly
Sets the attribute sort_order.
Instance Method Summary collapse
Instance Attribute Details
#column_offset ⇒ Object
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_order ⇒ Object
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
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
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, *) = . @columns.add(col_name, ) end |