Is it possible and how to make my ui-select readonly? Of course I've tried ng-readonly="isReadOnly" where I define in my controller $scope.isReadOnly=false; And of course I want to calculate it "in runtime" according to data from server that can change the state.
If you need to view the options and disable text typing, you can use search-enabled option
<ui-select search-enabled="false" ...>
...
</ui-select>
DEMO here
Use ng-disabled instead of ng-readonly.
<ui-select ng-disabled="isReadOnly" ...>
...
</ui-select>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With