mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
fix ordering
This commit is contained in:
@@ -663,7 +663,7 @@ ion-menu-controller,method,isAnimating,isAnimating() => Promise<boolean>
|
||||
ion-menu-controller,method,isEnabled,isEnabled(menu?: string | null | undefined) => Promise<boolean>
|
||||
ion-menu-controller,method,isOpen,isOpen(menu?: string | null | undefined) => Promise<boolean>
|
||||
ion-menu-controller,method,open,open(menu?: string | null | undefined) => Promise<boolean>
|
||||
ion-menu-controller,method,registerAnimation,registerAnimation(name: string, animation: ((menu: MenuI) => IonicAnimation) | AnimationBuilder) => Promise<void>
|
||||
ion-menu-controller,method,registerAnimation,registerAnimation(name: string, animation: AnimationBuilder | ((menu: MenuI) => IonicAnimation)) => Promise<void>
|
||||
ion-menu-controller,method,swipeGesture,swipeGesture(enable: boolean, menu?: string | null | undefined) => Promise<HTMLIonMenuElement | undefined>
|
||||
ion-menu-controller,method,toggle,toggle(menu?: string | null | undefined) => Promise<boolean>
|
||||
|
||||
|
||||
@@ -226,7 +226,7 @@ export class MenuController implements MenuControllerI {
|
||||
* @param animation The animation function to register.
|
||||
*/
|
||||
@Method()
|
||||
async registerAnimation(name: string, animation: ((menu: MenuI) => IonicAnimation) | AnimationBuilder) {
|
||||
async registerAnimation(name: string, animation: AnimationBuilder | ((menu: MenuI) => IonicAnimation)) {
|
||||
this.menuAnimations.set(name, animation);
|
||||
}
|
||||
|
||||
|
||||
@@ -116,7 +116,7 @@ Type: `Promise<boolean>`
|
||||
|
||||
|
||||
|
||||
### `registerAnimation(name: string, animation: ((menu: MenuI) => IonicAnimation) | AnimationBuilder) => Promise<void>`
|
||||
### `registerAnimation(name: string, animation: AnimationBuilder | ((menu: MenuI) => IonicAnimation)) => Promise<void>`
|
||||
|
||||
Registers a new animation that can be used with any `ion-menu` by
|
||||
passing the name of the animation in its `type` property.
|
||||
|
||||
Reference in New Issue
Block a user