FramesCombo.js
490 Bytes
Ext.define('treps.view.Frames.FramesCombo', {
extend: 'Ext.form.field.ComboBox',
alias: 'widget.frames_combo',
editable:false,
valueField: 'id',
queryMode: 'local',
emptyText: 'No frame',
tpl: Ext.create('Ext.XTemplate',
'<tpl for=".">',
'<div class="x-boundlist-item">{id} - {fullname}</div>',
'</tpl>'
),
displayTpl: Ext.create('Ext.XTemplate',
'<tpl for=".">',
'<tpl if="id">',
'{id} - {fullname}',
'<tpl else>',
'',
'</tpl>',
'</tpl>'
)
});