How to add exsting panel to existing viewport?
I am a newbie. I am working on a project of a mini blog. I have a problem about panel and viewport.
In my project. I create a viewport whoes id is "mainViewport". In this viewport, I have a container, id = "conIndex". Out of the viewport, I have individual container, id = "conEdit".
I want to replace conIndex by conEdit and show it on. So, I make a button in conIndex, which has event function:
But nothing happens. So, I tried:
var viewport = Ext.ComponentQuery.query("[id=mainViewport]");
viewport.add( Ext.ComponentQuery.query("[id=conEdit]") );
It shows "undefined".
I have a question of how to do that in a easy way? And how a web software such as a forum with many departments works?