Foro

Problemas con el Tab

0
Doctores, tengo un pequeño problemas con un tab (ojo no es tabpanel), kreo una ventana pongo este tab ahi para krearme nuevas pestañas, cada pestaña llama un controlador i carga diferentes ventanas, lo que no consigo hacer es que de cada ventana kreada presionando un boton me cierre el tab avierto de la ventana ke estaba en dicha pestaña. Dejo el codigo de la creacion del tab i como agrega pestañas var tab = new Tabs.create({closable:false}); //tab.closable = false; tab.addtab('Ventana Principal','index.php/pantalla_c/inicio'); var panel_center = new Ext.Panel({ id:'p_center', layout:'fit', region:'center', title:'Sistema de Almacenes y Control de Facturacion', //autoScroll:true, tbar:new Ext.Toolbar({ items: [ { text:'Nivel General',split:false,iconCls:'configuration',iconAlign:'top',id:'01',disabled:true, menu:{ items: [ {text:'Usuarios',iconCls:'usuario',iconAlign:'top',id:'0101',disabled:true, handler:function(){tab.addtab(this.text,'index.php/pantalla_c /catalogo_usuarios'); }}, {text:'Perfiles',iconCls:'perfil',iconAlign:'top',id:'0102',disabled:true, handler:function(){ tab.addtab(this.text,'index.php/pantalla_c/catalogo_perfil');}}, {text:'Grupos Empresariales',iconCls:'grupoemp',iconAlign:'top',id:'0103',disabled:true, handler:function(){ tab.addtab(this.text,'index.php/pantalla_c/catalogo_grupoEmpresarial');} }, {text:'Companias',iconCls:'compania',iconAlign:'top',id:'0104',disabled:true, handler:function(){ tab.addtab(this.text,'index.php/pantalla_c/catalogo_compania');} }, {text:'Localidades',iconCls:'localidad',iconAlign:'top',id:'0105',disabled:true, handler:function(){ tab.addtab(this.text,'index.php/pantalla_c/catalogo_localidad');} }, {text:'Almacenes',iconCls:'almacen',iconAlign:'top',id:'0106',disabled:true, handler:function(){ tab.addtab(this.text,'index.php/pantalla_c/catalogo_almacen');} }, {text:'Ubicaciones',iconCls:'almacen',iconAlign:'top',id:'0107',disabled:true, handler:function(){ tab.addtab(this.text,'index.php/pantalla_c/catalogo_ubicacion');} }, {text:'Tipos de Ubicacion',iconCls:'',iconAlign:'top',id:'0108',disabled:true, handler:function(){ tab.addtab(this.text,'index.php/pantalla_c/tipo_ubicacion');} }, {text:'Terceros',iconCls:'terceros',iconAlign:'top',id:'0109',disabled:true, handler:function(){ tab.addtab(this.text,'index.php/pantalla_c/catalogo_clientes');} }, {text:'Clases Terceros',iconCls:'clase',iconAlign:'top',id:'0110',disabled:true, handler:function(){ tab.addtab(this.text,'index.php/pantalla_c/clases_clientes');} }, {text:'Categorias Terceros',iconCls:'categoria',iconAlign:'top',id:'0111',disabled:true, handler:function(){ tab.addtab(this.text,'index.php/pantalla_c/categoria_clientes');}}, {text:'Monedas',iconCls:'monedas',iconAlign:'top',id:'0112',disabled:true, handler:function(){ tab.addtab(this.text,'index.php/pantalla_c/catalogo_monedas');}}, {text:'Contadores',iconCls:'monedas',iconAlign:'top',id:'0113',disabled:true, menu:{ items:[ {text:'Contador de Cotizaciones',iconCls:'',id:'011302',disabled:true, handler:function(){ tab.addtab(this.text,'index.php/pantalla_c/contador_cotizacion'); }//end handler }, {text:'Contador de Contratos',iconCls:'',id:'011301',disabled:true, handler:function(){ tab.addtab(this.text,'index.php/pantalla_c/contador_contrato'); }//end handler }, {text:'Contador de Pedidos',iconCls:'',id:'011303',disabled:true, handler:function(){ tab.addtab(this.text,'index.php/pantalla_c/contador_pedido'); }//end handler } por Eje

¿Conoces a alguien que pueda responder esta pregunta? Comparte el link en Twitter o Facebook

Es necesario registrarse para poder participar en el foro! Si ya tienes una cuenta puedes entrar y comentar en este foro.