Sha256: 67d89f9e576db6bd3bb33ddba6ee469a64b08d4d89181c715e46d5587998eb19

Contents?: true

Size: 659 Bytes

Versions: 5

Compression:

Stored size: 659 Bytes

Contents

class BookGridLoader < Netzke::Base
  component :book_grid_one do |c|
    c.klass = Netzke::Basepack::Grid
    c.model = "Book"
    c.title = "One"
  end

  component :book_grid_two do |c|
    c.klass = Netzke::Basepack::Grid
    c.model = "Book"
    c.title = "Two"
  end

  action :load_one
  action :load_two

  js_configure do |c|
    c.layout = :fit

    c.on_load_one = <<-JS
      function(){
        this.netzkeLoadComponent('book_grid_one');
      }
    JS

    c.on_load_two = <<-JS
      function(){
        this.netzkeLoadComponent('book_grid_two');
      }
    JS
  end

  def configure(c)
    super
    c.bbar = [:load_one, :load_two]
  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_loader.rb
netzke-basepack-0.8.3 test/basepack_test_app/app/components/book_grid_loader.rb
netzke-basepack-0.8.2 test/basepack_test_app/app/components/book_grid_loader.rb
netzke-basepack-0.8.1 test/basepack_test_app/app/components/book_grid_loader.rb
netzke-basepack-0.8.0 test/basepack_test_app/app/components/book_grid_loader.rb