【问题标题】:how to change the button text in extjs 4.2.2 row editor?如何更改 extjs 4.2.2 行编辑器中的按钮文本?
【发布时间】:2015-09-25 21:31:12
【问题描述】:

在早期版本的 extjs 中,我们有 initEditor 来覆盖行编辑器插件的配置。

在 4.2.2 中我们没有 initEditor ,请有人告诉我如何覆盖 4.2.2 中的配置以更新按钮文本。

提前致谢。

【问题讨论】:

    标签: javascript extjs extjs4.2


    【解决方案1】:
    var editor = new Ext.ux.grid.RowEditor({ 
    saveText : 'My Save Button Text';, 
    cancelText: 'My Cancel Button Text', 
    clicksToEdit: 1, //this changes from the default double-click activation to single click activation 
    errorSummary: false //disables display of validation messages if the row is invalid 
    });
    

    【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多