-
Notifications
You must be signed in to change notification settings - Fork 121
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
How can I achieve disabled state for the dropdown? #22
Comments
I too was in need of this feature. In the end I simply modified the dropdownMenu directive to get what I needed. I'm still a novice at angular so my approach may seem kinda clunky, but this is what I did:
2)I added an ng-show to the template variable and set it equal to showDropDown
3)In my controller I had a true/false variable called dropdownEnabled(my controller and not the directives controller property):
4)In my html where I needed the dropdown I added the new property show-drop-down apart from the other existing properties and set it equal to dropdownEnabled.
|
@DhruvPrakash thanks for the answer! |
anything new? this would be a very nice addition. |
Pull requests are welcome! |
As of version 1.2.0, the |
Seems like not working to me, is not disabled if i put dropdown-disabled="true" or false |
@asso1985 can you make a jsFiddle showing your problem? It seems to work on my example page http://jseppi.github.io/angular-dropdowns/ (click the Disable All) button. |
Just checked my package.json and found out this : "name": "angular-dropdowns", Seems like i'm running version "version": "1.1.0", that might be the problem. That was the problem, sorry. |
The title says it all. Those jQuery plugins have it, is there any chance that it will be implemented to this too? How can I achieve such effect for now?
The text was updated successfully, but these errors were encountered: