我有关于Ext.MessageBox.confirm方法的问题.我想添加一个新的生产线,以确认消息,但如果我把\n实在不行,如果我把html的新生产线BR 它的工作原理,但BR在消息中显示.我的methot如下所示.br在里面<>
confirm: function(message, callback) {
this.localizeExtMessageBox();
Ext.MessageBox.confirm(this.getLocalizedString(Ab.view.View.z_MESSAGE_CONFIRM), message, callback);
}
Run Code Online (Sandbox Code Playgroud)
我怎么能这样做,谢谢.
试试这个:
Ext.MessageBox.show({
title: 'my title',
icon: Ext.Msg.QUESTION,
msg: 'text here</br> other text in new line?',
buttonText: { yes: "Yes", no: "No" },
fn: function (btn) {
if (btn == 'yes') {
//your realization
}
}
}
});
Run Code Online (Sandbox Code Playgroud)