Foros de discusión

Display some Html content in Alloy Popup

Giorgio Gosti, modificado hace 7 años.

Display some Html content in Alloy Popup

New Member Mensajes: 21 Fecha de incorporación: 26/06/14 Mensajes recientes
Hi
I know that with the Dialog component I can display html in alloy popup with

<aui:script>
function callPopup(){
AUI().ready('aui-dialog', 'aui-overlay-manager', 'dd-constrain', function(A) {
var dialog = new A.Dialog({
title: 'DISPLAY CONTENT',
centered: true,
modal: true,
width: 500,
height: 400,
bodyContent: "This is testing content inside the popup"
}).render();
});
}
</aui:script>

What'is an example code for Modal component?
Thanks a lot
Giorgio
thumbnail
Kyle Joseph Stiemann, modificado hace 7 años.

RE: Display some Html content in Alloy Popup

Liferay Master Mensajes: 760 Fecha de incorporación: 14/01/13 Mensajes recientes
Hi Giorgio,
There are some examples of how to use AlloyUI Modal on alloyui.com. If you have a more complex use-case and need to render complicated html in the body of the modal, consider using the boundingBox and contentBox attributes to attach the modal to existing html elements. Here is some example code for how to put html directly in the body of the modal.

- Kyle
Giorgio Gosti, modificado hace 7 años.

RE: Display some Html content in Alloy Popup

New Member Mensajes: 21 Fecha de incorporación: 26/06/14 Mensajes recientes
Thanks Kyle