|
1 |
| -import type { MenuControllerI } from '@ionic/core/components'; |
| 1 | +import type { MenuControllerI, AnimationBuilder, MenuI, Animation } from '@ionic/core/components'; |
2 | 2 |
|
3 |
| -export class MenuController { |
| 3 | +export class MenuController implements MenuControllerI { |
4 | 4 | constructor(private menuController: MenuControllerI) {}
|
5 | 5 |
|
6 | 6 | /**
|
@@ -98,4 +98,32 @@ export class MenuController {
|
98 | 98 | getMenus(): Promise<HTMLIonMenuElement[]> {
|
99 | 99 | return this.menuController.getMenus();
|
100 | 100 | }
|
| 101 | + |
| 102 | + registerAnimation(name: string, animation: AnimationBuilder): void { |
| 103 | + return this.menuController.registerAnimation(name, animation); |
| 104 | + } |
| 105 | + |
| 106 | + isAnimating(): Promise<boolean> { |
| 107 | + return this.menuController.isAnimating(); |
| 108 | + } |
| 109 | + |
| 110 | + _getOpenSync(): HTMLIonMenuElement | undefined { |
| 111 | + return this.menuController._getOpenSync(); |
| 112 | + } |
| 113 | + |
| 114 | + _createAnimation(type: string, menuCmp: MenuI): Promise<Animation> { |
| 115 | + return this.menuController._createAnimation(type, menuCmp); |
| 116 | + } |
| 117 | + |
| 118 | + _register(menu: MenuI): void { |
| 119 | + return this.menuController._register(menu); |
| 120 | + } |
| 121 | + |
| 122 | + _unregister(menu: MenuI): void { |
| 123 | + return this.menuController._unregister(menu); |
| 124 | + } |
| 125 | + |
| 126 | + _setOpen(menu: MenuI, shouldOpen: boolean, animated: boolean): Promise<boolean> { |
| 127 | + return this.menuController._setOpen(menu, shouldOpen, animated); |
| 128 | + } |
101 | 129 | }
|
0 commit comments