How do I make a button in the ActionSheet
to have disabled class or ng-disabled directive.
buttonClicked: function(index) {
// Index button to be disabled ?
return true;
}
How do I make a button in the ActionSheet
to have disabled class or ng-disabled directive.
buttonClicked: function(index) {
// Index button to be disabled ?
return true;
}
Do you find a solution to this issue? I would like to have the same functionality.
No, I did not.
I just have a counter variable to control events
Sometimes… the doc is usefull ! ( ionic is based on Angular-js ? )
https://docs.angularjs.org/api/ng/directive/ngDisabled
simple example :::
(in view : )
<–label class=“item”>
<–button ng-disabled=“model.satus” class=“button button-block button-balanced” type=“submit”>{{value}}
<–/label>
(in controller : )
$scope.model.satus = true; // for disabled or false for enable…
i think can be helpfull…