feat($ionicSideMenuDelegate): add getOpenRatio() method

Closes #944.
This commit is contained in:
Ash Connell
2014-03-28 23:09:59 +11:00
committed by Andy Joslin
parent d2e54a823a
commit ac0e981f9e

View File

@@ -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