sencha touch2 如何修改MessageBox 按钮的文字

YESNO = [
{ text: '否', itemId: 'no' },
{ text: '是', itemId: 'yes', ui: 'action' }
];

Ext.MessageBox.YESNOCANCEL=[{text: 'Cancel', itemId: 'cancel'}, {text: 'No', itemId: 'no'}, {text: 'Yes', itemId: 'yes', ui: 'action'}]

Ext.MessageBox.YESNO = [{ text: '取消', itemId: 'no' }, { text: '确认', itemId: 'yes', ui: 'action'}]
Ext.Msg.confirm("title", "content", function (buttonId, value, opt) {
Ext.Msg.alert(buttonId);
if (buttonId=="yes") {
Ext.Msg.alert("点击的确认");
}
else {
Ext.Msg.alert("点击的取消");
}
});

posted on 2012-11-01 10:21  一青鸟一  阅读(268)  评论(0编辑  收藏  举报

导航