Sha256: 53c30a3a82831a814e528b0490a0b114acdc0b66ad7e90c5ba9e0a2c5510588f
Contents?: true
Size: 777 Bytes
Versions: 6
Compression:
Stored size: 777 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); } 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
6 entries across 6 versions & 1 rubygems