PDA

View Full Version : Create Layout with same title and 2 card ...



Riddler
3 Dec 2010, 2:53 AM
I to all,
I try to do a layout with a same title (toolbar) and 2 card ... one for a list of restaurant and one for the map that show a path to the restaurant ... I would like to switch from one to another ...

this is my code but I don't see nothing :-(



// List Restaurant <---> Map
function setLayout(which){
mainLayout.setActiveItem(which);
}

// PRINCIPALE
function rootPanel()
{
mainLayout= new Ext.Panel({
fullscreen: true,
layout: 'card',
dockedItems: [
{
dock : 'top',
xtype: 'toolbar',
title: '<span id="#title">Ristoranti</span>'
}],
items:
[listRestaurant(),map()]
});

setLayout(0);
return mainLayout;
}

listRestaurant() and map() return a panel and they work fine (already tested)...

What I can do?

thanks to all

--
Riddler ?