[Users] Use of setActiveItem
Vidal, Antoni
antoni.vidal at icc.cat
Fri Apr 1 15:30:29 CEST 2011
Hello list,
I cannot get the object to reference setActiveItem of Ext.Viewport layout property in order to expand an item.
My Ext.Viewport code:
new Ext.Viewport({
layout: "border",
items: [{
title: App.layout.titleLang,
region: "center",
xtype: "gx_mappanel",
id: "mappanel",
map: map,
layers: layerStore,
zoom: 11,
tbar: createTbarItems(map)
},{
title: "<img src=\"img/transparent22.png\"/>",
region: "west",
id: 'west-panel',
split: true,
width: 190,
minSize: 190,
maxSize: 300,
collapsible: true,
margins: '0 0 0 5',
layout: 'accordion',
layoutConfig:{
animate: true
},
items: [{...
I've tryed to get wit Ext.getCmp('mappanel'); but it doesn't work.
Any idea?
Thanks in advance
Antoni Vidal
Unitat d'Aplicacions SIG-WEB
Institut Cartogràfic de Catalunya <http://mercuri.icc.cat/website/mob_nf/mob1/mob2/inici2.htm?CONSULTA=Institut%20Cartogr%25E0fic%20de%20Catalunya&XYADDRESS=429486:4580392>
Parc de Montjuïc, E-08038 Barcelona
Tel. (+34) 93 567 15 00 (ext. 3228)
www.icc.cat <http://www.icc.cat/>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.geoext.org/pipermail/users/attachments/20110401/b8f4ca02/attachment.htm
More information about the Users
mailing list