Sha256: 8c9de1e7703c6ea51be8110ce62dac7d3d7310d08edb199960b3421062d3bad9

Contents?: true

Size: 362 Bytes

Versions: 7

Compression:

Stored size: 362 Bytes

Contents

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

  # First way to override a column
  override_column :title, :renderer => "uppercase"

  # 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

7 entries across 7 versions & 2 rubygems

Version Path
netzke-basepack-0.7.7 test/basepack_test_app/app/components/book_grid_with_overridden_columns.rb
netzke-basepack-zh-0.7.6 test/basepack_test_app/app/components/book_grid_with_overridden_columns.rb
netzke-basepack-0.7.6 test/basepack_test_app/app/components/book_grid_with_overridden_columns.rb
netzke-basepack-0.7.5 test/basepack_test_app/app/components/book_grid_with_overridden_columns.rb
netzke-basepack-0.7.4 test/basepack_test_app/app/components/book_grid_with_overridden_columns.rb
netzke-basepack-0.7.3 test/basepack_test_app/app/components/book_grid_with_overridden_columns.rb
netzke-basepack-0.7.2 test/basepack_test_app/app/components/book_grid_with_overridden_columns.rb