当您双击小部件时抛出
When you double-click on the widget is thrown
当我双击小部件时抛出:
Uncaught TypeError: Cannot read property 'focusable' of undefined
我有带小部件列的网格
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',
编辑时显示连击
在普通视图中,显示一个带有按钮的面板
如果单元格为空,则组合显示为空文本。当您点击组合时,列表会掉落但出现错误
2017 年 3 月 29 日更新
如果删除了编辑插件,则没有错误。
转载:
https://fiddle.sencha.com/#view/editor&fiddle/1t1v
已解决。我为 widgetcolumn
定义了一个空的编辑器
editor:{},
问题消失了。
当我双击小部件时抛出:
Uncaught TypeError: Cannot read property 'focusable' of undefined
我有带小部件列的网格
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',
编辑时显示连击
在普通视图中,显示一个带有按钮的面板
如果单元格为空,则组合显示为空文本。当您点击组合时,列表会掉落但出现错误
2017 年 3 月 29 日更新
如果删除了编辑插件,则没有错误。 转载: https://fiddle.sencha.com/#view/editor&fiddle/1t1v
已解决。我为 widgetcolumn
定义了一个空的编辑器 editor:{},
问题消失了。