igniteui-dockmanager icon indicating copy to clipboard operation
igniteui-dockmanager copied to clipboard

Add API to programmatically minimize a pane

Open ddaribo opened this issue 1 year ago • 0 comments

Is your feature request related to a problem? Please describe.

Programmatically maximizing a pane is possible by assigning the following properties:

targetPane.isMaximized = true;
this.dockManager.maximizedPane = targetPane;

For minimizing, the below should also work:

   if (this.dockManager.maximizedPane) {
            this.dockManager.maximizedPane.isMaximized = false;
            this.dockManager.maximizedPane = null;
   }

However, for apps having the compilerOptions strictNullChecks set as true in tsconfig.json, the compiler lights up with the following: MicrosoftTeams-image (2)

Describe the solution you'd like

Make the maximizedPane nullable, or expose methods to maximize/minimize panes programmatically.

Describe alternatives you've considered

The above snippet and setting the strictNullChecks to false.

Additional context

Sample here. The compiler does not error on the dev environment.

ddaribo avatar Aug 02 '23 07:08 ddaribo