如何从行编辑插件的"allowBlank: false"配置中删除窗口错误消息



如何从添加新行添加新行时从"允许布兰克:false"配置中删除窗口错误消息(在右侧显示)?

您无需覆盖Ext.grid.RowEdit。只需在插件中添加errorSummary: false

plugins: [{
  ptype: 'rowediting',
  clicksToEdit: 2,
  errorSummary: false
}]

您可以覆盖Roweditor类中的ShowToolTip方法:

Ext.define('RowEditorOverride', {
    override: 'Ext.grid.RowEditor',
    showToolTip: function() {
        return;
    }
});

添加errorsummary:false config

相关内容

最新更新