How to open view in dialogwindow that is resizable and have full screen button. We have withresizable only in dialog and not in dialogwindow. I also want it to have full screen button.
Thanks in advance.
Umesh
How to open view in dialogwindow that is resizable and have full screen button. We have withresizable only in dialog and not in dialogwindow. I also want it to have full screen button.
Thanks in advance.
Umesh
Hi!
This feature is not yet available. Here’s an issue for implementing it: Maximize/Minimize Dialog functionality · Issue #4926 · jmix-framework/jmix · GitHub
As a temporary solution, you can implement dedicated buttons to maximiz/minimize and add them to the dialog header using the following feature: Provide mechanism or API for customizing header and footer of DialogWindow · Issue #3673 · jmix-framework/jmix · GitHub
Best regards,
Dmitriy
ok able to do it like this to get dialog of fullscreen button, any better way -
Dialog dialog = findParentDialog(fullScreenButton);
private Dialog findParentDialog(Component start) {
Component current = start;
while (current != null) {
if (current instanceof Dialog) {
return (Dialog) current;
}
current = current.getParent().orElse(null);
}
return null;
}