EasyUI Forum
June 30, 2024, 09:22:49 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Customizing message box  (Read 3968 times)
thecyberzone
Full Member
***
Posts: 176



View Profile Email
« 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.
Logged
jarry
Administrator
Hero Member
*****
Posts: 2268


View Profile Email
« Reply #1 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);
}
}
});
Logged
thecyberzone
Full Member
***
Posts: 176



View Profile Email
« Reply #2 on: March 14, 2019, 11:45:47 PM »

Thanks jarry
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!