Sha256: 38f43b9c88164c2fcb9dfeae0f13beb73ff9513a4dd219532231b4acbbb4ebf8

Contents?: true

Size: 669 Bytes

Versions: 9

Compression:

Stored size: 669 Bytes

Contents

class BookGridLoader < Netzke::Base
  js_property :layout, :fit

  component :book_grid_one, :class_name => "Netzke::Basepack::GridPanel", :model => "Book", :lazy_loading => true
  component :book_grid_two, :class_name => "Netzke::Basepack::GridPanel", :model => "Book", :lazy_loading => true

  action :load_one
  action :load_two

  js_method :on_load_one, <<-JS
    function(){
      this.loadNetzkeComponent({name: 'book_grid_one', container: this.id});
    }
  JS

  js_method :on_load_two, <<-JS
    function(){
      this.loadNetzkeComponent({name: 'book_grid_two', container: this.id});
    }
  JS

  js_property :bbar, [:load_one.action, :load_two.action]

end

Version data entries

9 entries across 9 versions & 2 rubygems

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