【发布时间】:2023-03-09 17:40:01
【问题描述】:
如果您使用带有默认按钮的代码:
Ext.Msg.show({
title:'Save Changes?',
msg: 'You are closing a tab that has unsaved changes. Would you like to save your changes?',
buttons: Ext.Msg.YESNOCANCEL,
icon: Ext.Msg.QUESTION
});
窗口上的按钮按是 - 否 - 取消的顺序排列。我希望他们在订单中取消 - 不 - 是的,以确保我的应用程序的一致性。有没有办法根据我的需要添加不同的配置或更改它?
【问题讨论】:
-
您尝试使用
buttons: [ {text: 'Cancel', itemId: 'cancel'}, {text: 'No', itemId: 'no'}, {text: 'Yes', itemId: 'yes', ui: 'action'} ]
标签: javascript extjs extjs4.2