EasyUI Forum
May 08, 2024, 05:50:06 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: Remove Footer from messager  (Read 2695 times)
sky-t
Full Member
***
Posts: 145


View Profile
« on: August 18, 2020, 12:20:01 AM »

Hi there,

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


Thanks a lot
Logged
jarry
Administrator
Hero Member
*****
Posts: 2262


View Profile Email
« Reply #1 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(){
    // ...
  }
})
Logged
sky-t
Full Member
***
Posts: 145


View Profile
« Reply #2 on: August 18, 2020, 01:09:00 AM »

Awesome jarry!!!


Thank you so much!!!
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!