//extjs 自定义消息框
var config = {
title: "提示",
msg: "请输入保存的文件名",
width: 400,
multiline: true,
closable: true, //是否显示关闭按钮
buttons: Ext.Msg.YESNO,
icon: Ext.Msg.Info,
value: getFullDateString(new Date()),//弹出框默认值
fn: function (btn, inputText) {
if (btn == 'yes') {
//do something
}, function (msg) {
if (msg == null)
msg = "";
Ext.Msg.alert("保存失败!" + msg);
});
}
}
};
Ext.Msg.show(config);