Search This Blog

Serenity Make The Dialog Maximizable

Add the following attributes above the dialog class in classDialog.ts file.

    @Serenity.Decorators.resizable()
   @Serenity.Decorators.maximizable()

We can add the following function in classDialog.ts file to make the dialog maximized by default.

        protected onDialogOpen() 
        {            
                $(".ui-dialog-titlebar-maximize").click();
                super.onDialogOpen();            
        }


No comments:

Post a Comment

Web Statistics