Sha256: 0f4064ce24a7b090c282acedbd692b5339a98e86bcf689839284f1ecb236204f

Contents?: true

Size: 365 Bytes

Versions: 5

Compression:

Stored size: 365 Bytes

Contents

class BookGridWithOverriddenColumns < Netzke::Basepack::Grid
  model "Book"

  # First way to override a column
  column :title do |c|
    c.renderer = "uppercase"
  end

  # Second way to override a column
  # def default_config
  #   super.tap do |c|
  #     c[:override_columns] = {
  #       :title => {:renderer => "uppercase"}
  #     }
  #   end
  # 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/book_grid_with_overridden_columns.rb
netzke-basepack-0.8.3 test/basepack_test_app/app/components/book_grid_with_overridden_columns.rb
netzke-basepack-0.8.2 test/basepack_test_app/app/components/book_grid_with_overridden_columns.rb
netzke-basepack-0.8.1 test/basepack_test_app/app/components/book_grid_with_overridden_columns.rb
netzke-basepack-0.8.0 test/basepack_test_app/app/components/book_grid_with_overridden_columns.rb