Skip to content

Commit f5ef51d

Browse files
author
Giuseppe Pennisi
committed
fix: added missing states
1 parent 5e2df00 commit f5ef51d

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

packages/angular-winbox/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,10 @@ constructor(winBoxService : WinboxService) {}
3535
this.winBoxService.showLastWinbox();
3636

3737
// Maximize a WinBox by id.
38-
this.winBoxService.maximizeWinbox(id: string | number);
38+
this.winBoxService.maximizeWinbox(id: string | number, state: boolean);
3939

4040
// Minimize a WinBox by id.
41-
this.winBoxService.minimizeWinbox(id: string | number);
41+
this.winBoxService.minimizeWinbox(id: string | number, state: boolean);
4242

4343
// Close all the created winBox.
4444
this.winBoxService.closeAllWinBoxes();

packages/angular-winbox/src/lib/winbox.service.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -87,12 +87,12 @@ export class WinboxService {
8787
}
8888

8989
/** This method minimize a Winbox selected by id*/
90-
public minimizeWinbox(id: string | number) {
91-
this.winBoxStack.find((winbox) => winbox.id === id)?.minimize(false);
90+
public minimizeWinbox(id: string | number, state: boolean) {
91+
this.winBoxStack.find((winbox) => winbox.id === id)?.minimize(state);
9292
}
9393

9494
/** This method maximize a Winbox selected by id*/
95-
public maximizeWinbox(id: string | number) {
96-
this.winBoxStack.find((winbox) => winbox.id === id)?.maximize(false);
95+
public maximizeWinbox(id: string | number, state: boolean) {
96+
this.winBoxStack.find((winbox) => winbox.id === id)?.maximize(state);
9797
}
9898
}

0 commit comments

Comments
 (0)