EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: sky-t on August 18, 2020, 12:20:01 AM



Title: Remove Footer from messager
Post by: sky-t on August 18, 2020, 12:20:01 AM
Hi there,

how can i remove the footer and button completly from messager?


Thanks a lot


Title: Re: Remove Footer from messager
Post by: jarry on August 18, 2020, 01:02:26 AM
While displaying the messager dialog, assign a custom class to hide the dialog button. Please refer to the code below.

Code:
<style type="text/css">
  .mymessager .dialog-button{
    display: none;
  }
</style>
Code:
$.messager.alert({
  title: 'My Title',
  msg: 'The alert message.',
  cls: 'mymessager',
  fn: function(){
    // ...
  }
})


Title: Re: Remove Footer from messager
Post by: sky-t on August 18, 2020, 01:09:00 AM
Awesome jarry!!!


Thank you so much!!!