mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-16 10:01:59 +08:00
refactor(): remove deprecated swipeEnable (#19526)
This commit is contained in:

committed by
Brandy Carney

parent
ac4f254a4f
commit
1b9d61bfa8
@ -48,18 +48,6 @@ export class MenuController {
|
|||||||
return menuController.enable(shouldEnable, menuId);
|
return menuController.enable(shouldEnable, menuId);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Used to enable or disable the ability to swipe open the menu.
|
|
||||||
* @param shouldEnable True if it should be swipe-able, false if not.
|
|
||||||
* @param [menuId] Optionally get the menu by its id, or side.
|
|
||||||
* @return Returns the instance of the menu, which is useful for chaining.
|
|
||||||
* @deprecated Use swipeGesture() instead.
|
|
||||||
*/
|
|
||||||
swipeEnable(shouldEnable: boolean, menuId?: string) {
|
|
||||||
console.warn('[DEPRECATED][ion-menu-controller] swipeEnable() is deprecated. Use MenuController.swipeGesture() instead');
|
|
||||||
return this.swipeGesture(shouldEnable, menuId);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Used to enable or disable the ability to swipe open the menu.
|
* Used to enable or disable the ability to swipe open the menu.
|
||||||
* @param shouldEnable True if it should be swipe-able, false if not.
|
* @param shouldEnable True if it should be swipe-able, false if not.
|
||||||
|
Reference in New Issue
Block a user