Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
<strong>Guía</strong> <strong>básica</strong> <strong>de</strong> <strong>Liferay</strong><br />
stack: true,<br />
title: 'Dialog title',<br />
width: 500,<br />
modal:true,<br />
cssClass: 'clasePrueba',<br />
id: 'i<strong>de</strong>ntificadorDialog',<br />
buttons: [<br />
{<br />
text: 'Alerta1',<br />
handler: function() {<br />
alert('alerta1');<br />
}<br />
},<br />
{<br />
text: 'Alerta2',<br />
handler: function() {<br />
alert('alerta2');<br />
}<br />
}<br />
]<br />
}).ren<strong>de</strong>r();<br />
});<br />
<br />
A continuación se muestra una tabla con todas las options utilizadas y su<br />
explicación:<br />
Option Descripción Tipo<br />
bodyContent:<br />
Es el contenido <strong>de</strong>l dialog. Pue<strong>de</strong> contener tanto<br />
texto plano, como código, como portlets.<br />
string<br />
centered:<br />
Establece si queremos que el dialog salga centrado<br />
en la pantalla.<br />
true/false<br />
constrain2view:<br />
Comprime el dialog para que solo se vea la región<br />
visible <strong>de</strong>l portlet.<br />
Destruye el dialog cuando lo cerramos. En caso <strong>de</strong><br />
true/false<br />
<strong>de</strong>stroyOnClose: no <strong>de</strong>struirlo, quedaría creado en el código pero<br />
oculto. Admite valores true o false.<br />
true/false<br />
draggable:<br />
Establece si queremos que podamos arrastrar el<br />
bocadillo o no. Admite valores true o false.<br />
true/false<br />
height: La altura <strong>de</strong>l bocadillo.<br />
Permite redimensionar el bocadillo creado<br />
int<br />
resizable:<br />
mediante un pequeño icono que sale en una<br />
esquina. Admite valores true o false.<br />
true/false<br />
title: Establece el título <strong>de</strong>l bocadillo. Necesita un string. string<br />
Visita www.chekis.es<br />
36