Blame view

ihm/app/view/FileFormats/FileFormatsCombo.js 516 Bytes
346b85c6   Benjamin Renard   First commit with...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
Ext.define('treps.view.FileFormats.FileFormatsCombo', {
	extend: 'Ext.form.field.ComboBox',

	alias: 'widget.fileformats_combo',

	fieldLabel: 'File format',

	editable:false,

	valueField: 'id',

	queryMode: 'local',

	allowBlank: false,

	tpl: Ext.create('Ext.XTemplate',
		'<tpl for=".">',
			'<div class="x-boundlist-item">{fullname}</div>',
		'</tpl>'
	),

	displayTpl: Ext.create('Ext.XTemplate',
		'<tpl for=".">',
			'<tpl if="id">',
				'{fullname}',
			'<tpl else>',
				'',
			'</tpl>',
		'</tpl>'
	)
});