ExtJS 4>行编辑器网格>如何更改“更新”按钮文字 [英] ExtJS 4 > Row Editor Grid > How to Change "Update" Button Text
本文介绍了ExtJS 4>行编辑器网格>如何更改“更新”按钮文字的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
解决方案
请问有没有办法更改ExtJS-4行编辑器网格中的更新按钮的文本?问题是,我通过源代码查看,而RowEditing插件中没有任何内容,在类中它扩展了RowEditor.js,有以下内容:
Ext.define('Ext.grid.RowEditor',{
extends:'Ext.form.Panel',
requires:[
'Ext。 tip.ToolTip',
'Ext.util.HashMap',
'Ext.util.KeyNav'
],
saveBtnText:'Update',
cancelBtnText:'取消',
...
});
所以我假设你只需要覆盖'saveBtnText在
,因为它在$ $ c中使用callParent(arguments)调用父构造函数$ c> RowEditing class Ext.grid.plugin.RowEditing
的实例中
Is there any way to change the text of "Update" button in ExtJS-4 Row Editor Grid ?
解决方案
Good question, I had a look through the source code and whilst there is nothing inside the RowEditing plugin, in the class it extends 'RowEditor.js' there is the following:
Ext.define('Ext.grid.RowEditor', {
extend: 'Ext.form.Panel',
requires: [
'Ext.tip.ToolTip',
'Ext.util.HashMap',
'Ext.util.KeyNav'
],
saveBtnText : 'Update',
cancelBtnText: 'Cancel',
...
});
So I'd assume you'd just need to override the 'saveBtnText'
in your instance of 'Ext.grid.plugin.RowEditing'
as it calls the parent constructor with callParent(arguments) in the RowEditing
class
这篇关于ExtJS 4>行编辑器网格>如何更改“更新”按钮文字的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文