Fórum

Display some Html content in Alloy Popup

Giorgio Gosti, modificado 7 Anos atrás.

Display some Html content in Alloy Popup

New Member Postagens: 21 Data de Entrada: 26/06/14 Postagens Recentes
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 7 Anos atrás.

RE: Display some Html content in Alloy Popup

Liferay Master Postagens: 760 Data de Entrada: 14/01/13 Postagens Recentes
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 7 Anos atrás.

RE: Display some Html content in Alloy Popup

New Member Postagens: 21 Data de Entrada: 26/06/14 Postagens Recentes
Thanks Kyle