Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- addTab : function( goURL, goTitle, goParams ){
- var NewTab = Ext.getCmp('mainTabs').add({
- title : goTitle,
- autoScroll : true,
- bodyStyle : 'padding:25px',
- closable : true,
- iconCls : 'x-status-valid',
- autoShow : true,
- autoLoad: {
- url: goURL,
- params: goParams, // or a URL encoded string
- discardUrl: true,
- nocache: true,
- text: "Loading...",
- timeout: 60,
- scripts: false // Save time by avoiding RegExp execution.
- //callback: yourFunction,
- //scope: yourObject, //(optional scope)
- }
- }).doLayout();
- alert(NewTab);
- Ext.getCmp('mainTabs').setActiveTab( NewTab );
Add Comment
Please, Sign In to add comment