Sha256: ec91491da8e72d2259cadcc35d1063f8562b743d88ec6ab4590f938cd2aa5269
Contents?: true
Size: 753 Bytes
Versions: 11
Compression:
Stored size: 753 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, clientConfig: {read_only: true}}); # class DynamicTabPanel < Netzke::Base js_configure do |c| c.extend = "Ext.tab.Panel" c.mixin 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.client_config <== is accessible here c.klass = (c.client_config[:klass] || "Netzke::Core::Panel").constantize end end end end
Version data entries
11 entries across 11 versions & 1 rubygems