Sha256: c5ea7ba07417ed6c118841cde35923aec787d8bbf1e40444cd6008561b19613c
Contents?: true
Size: 912 Bytes
Versions: 3
Compression:
Stored size: 912 Bytes
Contents
{ tabCounter: 0, netzkeTabComponentDelivered: function(c, config) { var tab, i, activeTab = this.getActiveTab(), cmp = Ext.create(Ext.apply(c, {closable: true})); if (config.newTab || activeTab == null) { tab = this.add(cmp); } else { tab = this.getActiveTab(); i = this.items.indexOf(tab); this.remove(tab); tab = this.insert(i, cmp); } if(config.tabIcon){ tab.setIcon(config.tabIcon); } if(config.tabTitle){ tab.setTitle(config.tabTitle); } this.setActiveTab(tab); }, netzkeLoadComponentByClass: function(klass, options) { this.netzkeLoadComponent('child', Ext.apply(options, { configOnly: true, itemId: "tab_" + this.tabCounter++, serverConfig: Ext.apply(options.serverConfig || {}, { class_name: klass }), callback: this.netzkeTabComponentDelivered })); } }
Version data entries
3 entries across 3 versions & 1 rubygems