PDA

View Full Version : Ext 3.0 -> Load archive in grouptabpanel



Rafael
17 Apr 2009, 7:42 PM
For each link I would like to load an archive, example cliente.js. How I make in grouptabpanel?


var viewport = new Ext.Viewport({
layout:'fit',
items:[{
xtype: 'grouptabpanel',
tabWidth: 130,
activeGroup: 0,
items: [{
mainItem: 1,
items: [{
title: 'Cliente',
layout: 'fit',
iconCls: 'x-icon-cliente',
tabTip: 'Formulário de Clientes',
style: 'padding: 10px;',
items: [{
layout: 'fit',
title: 'Clientes',
items: [new GR_GridPrincipal( dsCliente, coluna, Me_Busca, formulario, recordData)],
hideBorders: true
}]
},{
xtype: 'portal',
title: 'Sistema',
//tabTip: 'Sistema tabtip',
},{
title: 'Funcionarios',
iconCls: 'x-icon-funcionario',
tabTip: 'Formulário de Funcionarios',
style: 'padding: 10px;',
//html: Ext.example.shortBogusMarkup
},{
title: 'Backup',
iconCls: 'x-icon-backup',
tabTip: 'Formulário de Backup',
style: 'padding: 10px;',
//html: Ext.example.shortBogusMarkup
},{
title: 'Chamados',
iconCls: 'x-icon-chamado',
tabTip: 'Formulário de Chamados',
style: 'padding: 10px;',
//html: Ext.example.shortBogusMarkup
}]
}, {
expanded: true,
items: [{
title: 'Configuration',
iconCls: 'x-icon-configuration',
tabTip: 'Configuration tabtip',
style: 'padding: 10px;',
//html: Ext.example.shortBogusMarkup
}, {
title: 'Email Templates',
iconCls: 'x-icon-templates',
tabTip: 'Templates tabtip',
style: 'padding: 10px;',
//html: Ext.example.shortBogusMarkup
}]
}]
}]
});This example dont load archive !

666ragez666
17 Apr 2009, 8:06 PM
Did you loaded the js with the groupyabpanel class definition

Rafael
17 Apr 2009, 8:14 PM
i dont found a documentation for grouptabpanel.
You ahve a link ?

shibubh
17 Apr 2009, 8:28 PM
check the examples\grouptabs folder
there is a js file called GroupTabPanel.js

666ragez666
17 Apr 2009, 8:31 PM
one (http://extjs.com/deploy/ext-3.0-rc1/examples/grouptabs/GroupTab.js)
two (http://extjs.com/deploy/ext-3.0-rc1/examples/grouptabs/GroupTabPanel.js)

there is no doc since it's not part of the framework but more an example how to do it

the example is located there (http://extjs.com/deploy/ext-3.0-rc1/examples/grouptabs/GroupTab.js) and it would be also available in the example dir of your Ext 3 sdk.