-
Notifications
You must be signed in to change notification settings - Fork 31
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
Disable an option using extra attribute from server #34
Comments
There is no built-in way to do this, however, if you take a look at the way I build up the options:
you should be able to modify the code to use an additional parameter such as Something like this..
I don't really modify the response from the server, so as long as the Also, a word for caution, the original library that this project extends is deprecated (https://github.com/harvesthq/chosen) and I have not worked on this project for a pretty long time, so definitely use it carefully. |
It helps, Thank you. |
Is there any way to make an option disabled based on another field value from server , for example now we have id, text field returned from server , can I return an additional parametr as is_freeze so based on thats value option gets disabled.
The text was updated successfully, but these errors were encountered: