掲示板

Display some Html content in Alloy Popup

7年前 に Giorgio Gosti によって更新されました。

Display some Html content in Alloy Popup

New Member 投稿: 21 参加年月日: 14/06/26 最新の投稿
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
7年前 に Kyle Joseph Stiemann によって更新されました。

RE: Display some Html content in Alloy Popup

Liferay Master 投稿: 760 参加年月日: 13/01/14 最新の投稿
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
7年前 に Giorgio Gosti によって更新されました。

RE: Display some Html content in Alloy Popup

New Member 投稿: 21 参加年月日: 14/06/26 最新の投稿
Thanks Kyle