SAMPClientsDataView.js 664 Bytes
Ext.define('treps.view.SAMP.SAMPClientsDataView', {
	extend: 'Ext.view.View',

	alias: 'widget.sampclients_dataview',

	initComponent: function() {
		this.callParent(arguments);
	},

	tpl: new Ext.XTemplate(
		'<tpl for=".">',
			'<div style="margin: 2px;border: 1px solid #99BDE8;" class="clientinfo">',
				'<img src="{icon}" width=24 height=24/><br/>',
				'<b>Name : </b><span>{name}</span><br/>',
				'<b>Identificator : </b><span>{id}</span><br/>',
				'<b>Description : </b><span>{description}</span><br/>',
			'</div>',
		'</tpl>'
	),

	emptyText: 'No clients to show',

	itemSelector : 'div.clientinfo',

	overClass:'x-view-over',

	autoScroll : true
});