FileFormatsCombo.js
516 Bytes
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>'
)
});