I have a problem about Ext.MessageBox.confirm method. I want to add a new line to confirm message but if i put \n it is not work, if i put html new line br it works but br is shown in message. My methot is shown below. br is inside <>
confirm: function(message, callback) {
this.localizeExtMessageBox();
Ext.MessageBox.confirm(this.getLocalizedString(Ab.view.View.z_MESSAGE_CONFIRM), message, callback);
}
How can i do that, thank you.
I have a problem about Ext.MessageBox.confirm method. I want to add a new line to confirm message but if i put \n it is not work, if i put html new line br it works but br is shown in message. My methot is shown below. br is inside <>
confirm: function(message, callback) {
this.localizeExtMessageBox();
Ext.MessageBox.confirm(this.getLocalizedString(Ab.view.View.z_MESSAGE_CONFIRM), message, callback);
}
How can i do that, thank you.
Share Improve this question asked Oct 4, 2013 at 12:31 eraraterarat 1662 silver badges9 bronze badges 1- Thank you i found solution, if i write [br] it works. – erarat Commented Oct 4, 2013 at 12:39
1 Answer
Reset to default 8Try this:
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
}
}
}
});
发布者:admin,转转请注明出处:http://www.yc00.com/questions/1742325588a4422682.html
评论列表(0条)