当我双击小部件时:
未捕获的类型错误:无法读取未定义的属性“可聚焦”
我有带有小部件列的网格
text:'blabala'
flex: 1.8,
xtype: 'widgetcolumn',
dataIndex: 'attachment',
stopSelection: false,
widget: {
xtype: 'panel',
layout: 'hbox',
padding: 5,
border: 0,
bodyStyle: 'background:transparent',
flex: 1,
header: false,
items: [{
xtype: 'panel',
flex: 1,
bodyStyle: 'background:#d7d7d7;border-radius:16px',
layout: 'hbox',
items: [
{
xtype: 'button',
cls: 'attach-btn-divers',
padding: '10 0 10 5',
textAlign: 'left',
flex: 1,
}, {
xtype: 'button',
cls: 'attach-btn-divers attach-btn-divers-cancel',
padding: '10 5 10 0',
iconCls: 'x-fa fa-close',
handler: 'onDetachDiver',
width: 20,
},
]
}, {
xtype: 'combolabel',
forceSelection: true,
store: {
type: 'divingAttachmentStore'
},
displayField: 'value',
valueField: 'value',
autoSelect: true,
queryCaching: false,
queryMode: 'remote',
listConfig: {
loadMask: false
},
flex: 1,
listeners: {
specialkey: 'onEditAttachment',
focusLeave: 'onFocusLeaveAttachment',
beforequery: 'onBeforeQueryAttachment'
}
},
]
},
onWidgetAttach: 'onWidgetAttachAttachment',
编辑时,显示组合
在普通视图中,会显示一个带有按钮的面板
如果单元格为空,则组合显示为空文本。当您单击组合时,列表会下降但出现错误
更新 29.03.2017
如果删除了编辑插件,则没有错误。转载: https ://fiddle.sencha.com/#view/editor&fiddle/1t1v