Nov 06, 2008, 8:21 AM
[CLOSED] Appending content problem
Using 0.6, I have a viewport with borderlayout. In the north panel I have a Logo. In the west panel I have a tree. In the centre panel I have content. The North panel looks like this :
How can I APPEND to the content instead of REPLACING i.e. to leave the logo in place and add buttons to the right for example.
<North>
<ext:Panel ID="Panel1" runat="server" Height="80px">
<Content>
<img class="logo" src="images/logo.png" />
</Content>
</ext:Panel>
</North>
Now I want to be able to append content and buttons etc. to the North panel at runtime depending on what is clicked in the west panel. When I do :Ext.get('Panel1_Content').update('SOME HTML');
I get the North panel wiped off and repainted with the 'SOME HTML'. How can I APPEND to the content instead of REPLACING i.e. to leave the logo in place and add buttons to the right for example.