Sha256: 3bd74f2c420512a181cb94c44ba597cf807dd3cb9add74eab32d70a93438246d

Contents?: true

Size: 684 Bytes

Versions: 9

Compression:

Stored size: 684 Bytes

Contents

module Netzke
  module Basepack
    # A tab panel that can load components dynamically by their class name. Components can be loaded in the current or new tab.
    # For example:
    #
    #     this.netzkeLoadComponentByClass('BookGrid', {newTab: true, serverConfig: {read_only: true}});
    #
    class DynamicTabPanel < Netzke::Base
      client_class do |c|
        c.extend = "Ext.tab.Panel"
      end

      # Override this method if you need more control on what components can/cannot be loaded, or in order to access
      # `client_config`
      component :child do |c|
        c.class_name = c.client_config[:class_name] || "Netzke::Core::Panel"
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
netzke-basepack-6.5.0.0 lib/netzke/basepack/dynamic_tab_panel.rb
netzke-basepack-6.5.0.0.rc2 lib/netzke/basepack/dynamic_tab_panel.rb
netzke-basepack-6.5.0.0.rc1 lib/netzke/basepack/dynamic_tab_panel.rb
netzke-basepack-1.0.1.0 lib/netzke/basepack/dynamic_tab_panel.rb
netzke-basepack-1.0.0.1 lib/netzke/basepack/dynamic_tab_panel.rb
netzke-basepack-1.0.0.0 lib/netzke/basepack/dynamic_tab_panel.rb
netzke-basepack-1.0.0.0.pre3 lib/netzke/basepack/dynamic_tab_panel.rb
netzke-basepack-1.0.0.0.pre2 lib/netzke/basepack/dynamic_tab_panel.rb
netzke-basepack-1.0.0.0.pre lib/netzke/basepack/dynamic_tab_panel.rb