Module: Cheveret::Table::Sorting::Sortable
- Defined in:
- lib/cheveret/table/sorting.rb
Overview
ClassMethods
Instance Attribute Summary collapse
-
#default_sort_direction ⇒ Object
Returns the value of attribute default_sort_direction.
-
#sortable ⇒ Object
Returns the value of attribute sortable.
Instance Method Summary collapse
-
#sortable? ⇒ Boolean
whether or not sorting the table by this column is allowed.
Instance Attribute Details
#default_sort_direction ⇒ Object
Returns the value of attribute default_sort_direction.
64 65 66 |
# File 'lib/cheveret/table/sorting.rb', line 64 def default_sort_direction @default_sort_direction end |
#sortable ⇒ Object
Returns the value of attribute sortable.
64 65 66 |
# File 'lib/cheveret/table/sorting.rb', line 64 def sortable @sortable end |
Instance Method Details
#sortable? ⇒ Boolean
whether or not sorting the table by this column is allowed. default false
69 70 71 |
# File 'lib/cheveret/table/sorting.rb', line 69 def sortable? sortable == true end |