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

Installing Blade CLI from Command Line

Liferay Keycloak integration