Skip to content

Commit ac0e981

Browse files
Ash Connellajoslin
Ash Connell
authored andcommitted
feat($ionicSideMenuDelegate): add getOpenRatio() method
Closes #944.
1 parent d2e54a8 commit ac0e981

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

js/ext/angular/src/directive/ionicSideMenu.js

+8
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,14 @@ angular.module('ionic.ui.sideMenu', ['ionic.service.gesture', 'ionic.service.vie
7474
* Default: Toggles the menu.
7575
*/
7676
'toggleRight',
77+
/**
78+
* @ngdoc method
79+
* @name $ionicSideMenuDelegate#getOpenRatio
80+
* @returns {float} The ratio of open amount over menu width. For example, a
81+
* menu of width 100 open 50 pixels would be open 50% or a ratio of 0.5. Value is negative
82+
* for right menu.
83+
*/
84+
'getOpenRatio',
7785
/**
7886
* @ngdoc method
7987
* @name $ionicSideMenuDelegate#isOpenLeft

0 commit comments

Comments
 (0)