0
我使用ext-js开发一个表单。我已经添加了按钮。通过点击保存按钮它显示msg要求确认有2个按钮确定并保存。但我不知道如何给这两个不同的按钮不同的消息。这里是我的代码在按钮上单击Ext-js显示不同的消息
buttons: [
{
text: 'Save',
handler:function()
{
Ext.Msg.show({
title:'Confirmation',
msg: 'Press OK if u want to Contine otherwise Press Cancel to Exit',
buttons: Ext.Msg.OKCANCEL
//There are buttons added
});
}
},
}]
您使用的是什么版本的ExtJS的? – nscrob
我使用ext-js 3 – iRunner