Sha256: 5da52520b95c7c96279dc0506f511d666210ffae2689a7f90dc74474f6f00bdf

Contents?: true

Size: 179 Bytes

Versions: 5

Compression:

Stored size: 179 Bytes

Contents

class GridWithInitialSorting < Netzke::Basepack::Grid
  def configure(c)
    super
    c.model = "Book"
    c.data_store.sorters = {property: :title, direction: 'DESC'}
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
netzke-basepack-0.8.4 test/basepack_test_app/app/components/grid_with_initial_sorting.rb
netzke-basepack-0.8.3 test/basepack_test_app/app/components/grid_with_initial_sorting.rb
netzke-basepack-0.8.2 test/basepack_test_app/app/components/grid_with_initial_sorting.rb
netzke-basepack-0.8.1 test/basepack_test_app/app/components/grid_with_initial_sorting.rb
netzke-basepack-0.8.0 test/basepack_test_app/app/components/grid_with_initial_sorting.rb