-SamplePanel = Ext.extend(Ext.DataView, {
- autoHeight : true,
- frame : true,
- cls : 'demos',
- itemSelector : 'dd',
- overClass : 'over',
- tpl : new Ext.XTemplate(
- '<div id="sample-ct">',
- '<tpl for=".">',
- '<div><a name="{id}"></a><h2><div>{title}</div></h2>',
- '<dl>',
- '<tpl for="samples">',
- '<dd ext:url="{url}"><img src="shared/screens/{icon}"/>',
- '<div><h4>{text}',
- '<tpl if="this.isNew(values.status)">',
- '<span class="new-sample"> (New)</span>',
- '</tpl>',
- '<tpl if="this.isUpdated(values.status)">',
- '<span class="updated-sample"> (Updated)</span>',
- '</tpl>',
- '<tpl if="this.isExperimental(values.status)">',
- '<span class="new-sample"> (Experimental)</span>',
- '</tpl>',
- '</h4><p>{desc}</p></div>',
- '</dd>',
+ Ext.define('Ext.samples.SamplePanel', {
+ extend: 'Ext.view.View',
+ alias: 'widget.samplepanel',
+ autoHeight : true,
+ frame : false,
+ cls : 'demos',
+ itemSelector : 'dl',
+ overItemCls : 'over',
+ trackOver : true,
+ tpl : Ext.create('Ext.XTemplate',
+ '<div id="sample-ct">',
+ '<tpl for=".">',
+ '<div><a name="{id}"></a><h2><div>{title}</div></h2>',
+ '<dl>',
+ '<tpl for="samples">',
+ '<dd ext:url="{url}"><img src="shared/screens/{icon}"/>',
+ '<div><h4>{text}',
+ '<tpl if="this.isNew(values.status)">',
+ '<span class="new-sample"> (New)</span>',
+ '</tpl>',
+ '<tpl if="this.isUpdated(values.status)">',
+ '<span class="updated-sample"> (Updated)</span>',
+ '</tpl>',
+ '<tpl if="this.isExperimental(values.status)">',
+ '<span class="new-sample"> (Experimental)</span>',
+ '</tpl>',
+ '</h4><p>{desc}</p></div>',
+ '</dd>',
+ '</tpl>',
+ '<div style="clear:left"></div></dl></div>',