I have an extjs4 panel created using this config object.
{
title : 'Messages',
region : 'north',
height : 200,
minSize : 75,
maxSize : 250,
cmargins : '0 0 5 0',
html : '<i>Chat started on ' + Ext.Date.format(dt, EI.datePattern) + '</i>'
}
Now I want to append more html on it. For example I want to append
<p><span class=user>me:</span><span class=how are you?></span></p>
Sometimes I could append using
thePanel.body.insertHtml(beforeEnd, chatHtml);
But I see sometimes .body
is not set!! So I can not execute the above code. What is the proper way to do it?