Enable/disable $ionicActionSheet buttons conditionally

I can use the ng-disabled directive for buttons normally to enable/disable a button. If I am using an $ionicActionSheet how can I achieve the same for its buttons?

Nvm, I can just create the options object (with the necessary buttons) that’s passed into the show method on the fly based on the needed conditions.