Sha256: b8269b8ff149a55899c2eb756a02c3bbaed97b8976bc4cc955bbc684d61a3401

Contents?: true

Size: 496 Bytes

Versions: 8

Compression:

Stored size: 496 Bytes

Contents

class BookGridWithVirtualAttributes < Netzke::Basepack::GridPanel
  js_property :title, "Books"

  include Extras::BookPresentation

  def default_config
    super.merge(
      :model => "Book",
      :columns => default_fields_for_forms
    )
  end

  def default_fields_for_forms
    [
      {:name => :title},
      {:name => :author__first_name, :setter => author_first_name_setter},
      {:name => :exemplars},
      {:name => :in_abundance, :getter => in_abundance_getter}
    ]
  end
end

Version data entries

8 entries across 8 versions & 2 rubygems

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