PDA

View Full Version : Template inside border layout



advarot
6 Aug 2009, 5:34 AM
Hi,
I have a border layout with panel, I would like this panel to have a template.
I cretaed the template:
msgTp = new Ext.Template( '<p class="helpMsgClass">{icon}</br>{msg}</p>');
and now I would like to overwrite the panel in the border but I don;t know how to reach it.
In previous code I have I had a Panel object and used it like this:
msgTp.overwrite(helpMsgPanel.body, msgNoSearch);
but now I do not have a Panel object as it is part of the viewport layout.

Thanks
Adva

Animal
6 Aug 2009, 5:39 AM
It's still a Panel (probably, if as everyone does, you use Panels for everything as opposed to lighter weight Components)

advarot
6 Aug 2009, 5:44 AM
I wish I had your knowledge (or everyone has) to use Panels inside a border layout, I don't.
I would really appreciate it if you could explain how to do so, or direct me to an example that does so.
because so far its been 2 days and I'M NOT ABLE TO FIND ONE.

From all your posts it sounds like you know a lot but so far you are not helping very much.

Animal
6 Aug 2009, 8:06 AM
You must be a more advanced user than I had realized to use other Components than Panels as regions of your layouts.

I have NO CLUE what you are putting there, so I don't know how to help.