Extjs 当您双击小部件时,将抛出该小部件 当我双击小部件时,将抛出:
未捕获的TypeError:无法读取未定义的属性“focusable” 我有一个小部件列的网格Extjs 当您双击小部件时,将抛出该小部件 当我双击小部件时,将抛出:,extjs,widget,extjs6,focusable,Extjs,Widget,Extjs6,Focusable,未捕获的TypeError:无法读取未定义的属性“focusable” 我有一个小部件列的网格 text:'blabala' flex: 1.8, xtype: 'widgetcolumn', dataIndex: 'attachment', stopSelection: false, widget: { xtype: 'panel', layout: 'hbox', padding: 5, bor
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
如果删除了编辑插件,则没有错误。
转载:
已解决。我为widgetcolumn定义了一个空编辑器
editor:{},
问题消失了。什么是
combolabel
。在文档中找不到任何内容。combolabel是扩展combo。如果我们在combo上替换combolabel,问题仍然存在。