AUI Liferay Popup Example

AUI Liferay Popup Example

Here is sample code, which shows popup window on click:
AUI().ready('aui-base', function(A){
    A.one('#my-btn-selector').on('click',
        function() {
            Liferay.Util.openWindow(
                {
                    dialog: {
                        //cssClass: 'aui-popup-example',
                        destroyOnHide: true,
                        height: 600,
                        width: 800
                    },
                    dialogIframe: {
                        //bodyCssClass: 'custom-css-class'
                    },
                    title: 'My Popup Title',
                    uri: ''
                }
            );
        }
    );
}); 
Enjoy  😏

Comments

Popular posts from this blog

Liferay Search Container Example

Liferay DXP - max upload file size

Liferay Keycloak integration