Panel With Component Loader

Posted By Vitalii | March 14, 2012 | ExtJS 4.1.0
0 2079
This class is used to load content via Ajax into a Ext.Component. In general this class will not be instanced directly, rather a loader configuration will be passed to the constructor of the Ext.Component.

Js Code

Ext.widget('panel', {
	height: 200,
	title: 'Panel with Component Loader',
	loader: {
		url: '/Example/AlonePanel',
		renderer: function (loader, response, active) {
			var text = response.responseText;
			loader.getTarget().update(text, true);
			return true;
		},
		scripts: true,
		autoLoad: true
	},
	renderTo: 'output'
});