EasyUI Forum
May 16, 2024, 07:13:46 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: How to disable messager shadow?  (Read 5228 times)
aswzen
Sr. Member
****
Posts: 287


Indonesian

aswzen
View Profile WWW Email
« on: October 16, 2015, 01:35:42 AM »

How to disable messager shadow by default?

i know how to remove icon on $.messager.confirm..but the shadow its still on the size of original state..looks Odd when rendered.. So how to disable messager shadow?

Code:
// code to remove icon
var win = $.messager.confirm('My Title', 'Are you confirm this?', function(r){
if (r){
alert('confirmed: '+r);
}
}).find('.messager-icon').remove();


Thanks in advance
Logged

Regards,
Sigit

- Indonesian jEasyUI Facebook page : https://www.facebook.com/groups/jeasyuiid/
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #1 on: October 16, 2015, 05:26:06 PM »

If you want to display a confirm dialog with no icon and shadow, please try this:
Code:
$.messager.confirm({
title:'My Title',
content:'Are you confirm this?',
shadow:false,
fn:function(r){
if (r){
alert('confirmed:'+r);
}
}
});
Logged
aswzen
Sr. Member
****
Posts: 287


Indonesian

aswzen
View Profile WWW Email
« Reply #2 on: October 18, 2015, 07:50:01 PM »

ok its worked like a charm Smiley

but another problem comes up.. see here
Ok Cancel custom value option not working
http://www.jeasyui.com/forum/index.php?topic=5332.0
Logged

Regards,
Sigit

- Indonesian jEasyUI Facebook page : https://www.facebook.com/groups/jeasyuiid/
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!