-
-
Notifications
You must be signed in to change notification settings - Fork 901
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add feature: Disable single option within ng-select #1046
Comments
Sorry for the late update. For whoever may concern, all I had to do on the .ts file was:
I believe this property should be documented, as I believe it is not very clear it exists. |
Hi @gongAll, |
Instead, add a 'disabled: boolean' attribute to the object you're using to fill the table, as such:
ts
|
Wow! It works! Thank you! |
Is this also possible with the 2.20.0 version of ng-select? I'm trying to assign the attribute to the ng-option element/component, but can't get the option to be disabled. I've also tried adding the attribute to the model, without success. |
[disable] is not working for directive ng-option-tmp |
@loverzpark maybe read the entire conversation? It's not a bindable attribute, it's an attribute inside each element of the list. |
I have an ng-select element where I would like to be able to disable the selection of a given option, whenever I want.
I believe this feature would make sense to be available inside the ng-option-tmp, as so:
The text was updated successfully, but these errors were encountered: