From ac0e981f9e0c90458e7ab4bb3c86545a26320065 Mon Sep 17 00:00:00 2001 From: Ash Connell Date: Fri, 28 Mar 2014 23:09:59 +1100 Subject: [PATCH] feat($ionicSideMenuDelegate): add getOpenRatio() method Closes #944. --- js/ext/angular/src/directive/ionicSideMenu.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/js/ext/angular/src/directive/ionicSideMenu.js b/js/ext/angular/src/directive/ionicSideMenu.js index fb133656c23..e278bf5d7be 100644 --- a/js/ext/angular/src/directive/ionicSideMenu.js +++ b/js/ext/angular/src/directive/ionicSideMenu.js @@ -74,6 +74,14 @@ angular.module('ionic.ui.sideMenu', ['ionic.service.gesture', 'ionic.service.vie * Default: Toggles the menu. */ 'toggleRight', + /** + * @ngdoc method + * @name $ionicSideMenuDelegate#getOpenRatio + * @returns {float} The ratio of open amount over menu width. For example, a + * menu of width 100 open 50 pixels would be open 50% or a ratio of 0.5. Value is negative + * for right menu. + */ + 'getOpenRatio', /** * @ngdoc method * @name $ionicSideMenuDelegate#isOpenLeft