Open dialog as maximized
-
- Posts: 5
- Joined: 15 Aug 2018, 15:32
Hi. I want open the dialog as maximized. In other words, i want full screen dialog when open the dialog. How can i do this?
-
- Posts: 5
- Joined: 15 Aug 2018, 15:32
I found solution like this. And it is working good.
Code: Select all
<p-dialog (onShow)="showDialogMaximized($event,dialDetail)" #dialDetail></p-dialog>
Code: Select all
showDialogMaximized(event, dialog: Dialog) {
dialog.maximized = false;
dialog.toggleMaximize(event);
}
thnx for you info.
i however had to change the function to:
to prevent a javascript error message with the toggle function.
testen on PrimeNG 6.1.4
i however had to change the function to:
Code: Select all
showDialogMaximized(dialog: Dialog) {
dialog.maximize();
}
testen on PrimeNG 6.1.4
-
- Information
-
Who is online
Users browsing this forum: No registered users and 14 guests