Sha256: e0ad18272e2877b5bcaf8d2b1ed343b6b0650aef91d0f6910578d482844b1850

Contents?: true

Size: 1 KB

Versions: 9

Compression:

Stored size: 1 KB

Contents

# OUTDATED
class PagingFormWithSearch < Netzke::Basepack::BorderLayoutPanel
  def default_config
    super.tap do |s|
      s[:model] = "Book"
      s[:items] = [
        :paging_form_panel.component(:region => :center),
        :search_panel.component(:region => :west, :width => 600, :split => true)
      ]
    end
  end

  component :paging_form_panel do
    {
      :class_name => "Netzke::Basepack::PagingFormPanel",
      :model => config[:model]
    }
  end

  component :search_panel do
    {
      :class_name => "Netzke::Basepack::SearchPanel",
      :model => config[:model],
      :bbar => [:apply.action],
      :preset_query => []
    }
  end

  js_method :init_component, <<-JS
    function(){
      this.callParent();

      this.getChildComponent('search_panel').on('conditionsupdate', function(query){
        this.getChildComponent('paging_form_panel').getStore().baseParams.query = Ext.encode(query);
        this.getChildComponent('paging_form_panel').getStore().load();
      }, this);
    }
  JS

end

Version data entries

9 entries across 9 versions & 2 rubygems

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