Skip to content

Commit

Permalink
feat($ionicSideMenuDelegate): add getOpenRatio() method
Browse files Browse the repository at this point in the history
Closes #944.
  • Loading branch information
Ash Connell authored and ajoslin committed Mar 28, 2014
1 parent d2e54a8 commit ac0e981
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions js/ext/angular/src/directive/ionicSideMenu.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ac0e981

Please sign in to comment.