EasyUI Forum
May 13, 2024, 06:25:36 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: change window size of messager alert  (Read 6789 times)
eagleeye
Newbie
*
Posts: 19


View Profile Email
« on: May 08, 2015, 08:35:38 AM »

Hi partners, i need to show messager alert with errors but the default size donĀ“t fit to the messages, are there any code to change the size to window alert?

My code is it:

Code:
 $.messager.alert('Sistema de SOLPEDS y Pedidos', jsondata.mensaje, 'error');

Above line work fine.

In one example i see this with show but it close after some timeout, and i need show it but that user close it.

Code:
$.messager.show({
                                     title: 'Sistema de SOLPEDS y Pedidos, errores en fechas',
                                     msg:jsondata.mensaje,
                                     icon: 'error',
                                     // timeout:4000,
                                     showType: 'show',
                                     width: 600,
                                     height: 350,
                                     style: {
                                     right: '',
                                     top: document.body.scrollTop + document.documentElement.scrollTop,
                                     bottom: ''
                                     }
                                     });

Thanks in advance
Logged
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #1 on: May 08, 2015, 06:14:29 PM »

Please try the code below to display an alert window with special size.
Code:
$.messager.alert({
title: 'title',
msg: '<div style="height:100px">msg</div>',
icon: 'info',
width: 400
})
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!