EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: aswzen on October 16, 2015, 01:35:42 AM



Title: How to disable messager shadow?
Post by: aswzen 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


Title: Re: How to disable messager shadow?
Post by: stworthy 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);
}
}
});


Title: Re: How to disable messager shadow?
Post by: aswzen on October 18, 2015, 07:50:01 PM
ok its worked like a charm :)

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