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
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