EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: thecyberzone on March 13, 2019, 08:12:51 AM



Title: Customizing message box
Post by: thecyberzone on March 13, 2019, 08:12:51 AM
Is there any way to change the text of the confirmation button from ok-cancel to yes-no ? Also in case of message alert is there any way to customize icons from default error, warning etc.


Title: Re: Customizing message box
Post by: jarry on March 13, 2019, 06:28:48 PM
You can set the 'ok' and 'cancel' properties to change the button text.
Code:
$.messager.confirm({
title: 'My Title',
msg: 'Are you confirm this?',
ok: 'Yes',
cancel: 'No',
fn: function(r){
if (r){
alert('confirmed: '+r);
}
}
});


Title: Re: Customizing message box
Post by: thecyberzone on March 14, 2019, 11:45:47 PM
Thanks jarry