A simple Sencha Touch Ext.Panel with HTML

There are times when working with Sencha Touch where I try to make things too hard some times, but in this case, I’m pretty sure this is the simplest possible Sencha Panel with embedded HTML:

var myPanel = Ext.create('Ext.Panel', {
    html: 'Hello, world'
});

I don’t think it can get any easier than that.

Although I’ve read quite a few Sencha books now, I’ve never taken a course, and I don’t know why the html parameter can be used here outside of a config block. If you look at the docs at http://docs.sencha.com/touch/2.3.1/#!/api/Ext.Panel, html is clearly shown as a config property, yet it can be used outside of config. As a relative Sencha newbie, I don’t understand this, but it works.