feat(menu): add new lifeycle events

This commit is contained in:
Manu Mtz.-Almeida
2018-10-09 09:53:32 -05:00
parent 7f62bb75d0
commit 64b52b54e4
4 changed files with 43 additions and 13 deletions

View File

@ -2565,15 +2565,23 @@ export namespace Components {
/**
* Emitted when the menu is closed.
*/
'onIonClose'?: (event: CustomEvent<void>) => void;
'onIonDidClose'?: (event: CustomEvent<void>) => void;
/**
* Emitted when the menu is open.
*/
'onIonDidOpen'?: (event: CustomEvent<void>) => void;
/**
* Emitted when the menu state is changed.
*/
'onIonMenuChange'?: (event: CustomEvent<MenuChangeEventDetail>) => void;
/**
* Emitted when the menu is open.
* Emitted when the menu is about to be closed.
*/
'onIonOpen'?: (event: CustomEvent<void>) => void;
'onIonWillClose'?: (event: CustomEvent<void>) => void;
/**
* Emitted when the menu is about to be opened.
*/
'onIonWillOpen'?: (event: CustomEvent<void>) => void;
/**
* Which side of the view the menu should be placed. Default `"start"`.
*/