Support for disabling whole drop-down box
See original GitHub issueIt would be nice if the directive would offer the possibility to disable the whole drop-down box and not just the individual elements. This could be easily done by adjusting the template to something like this:
'<button ng-if="!isDisabled" type="button" class="button multiSelectButton" ng-click="toggleCheckboxes( $event ); refreshSelectedItems(); refreshButton();" ng-bind-html="varButtonLabel">' +
'<button ng-if="isDisabled" type="button" class="button multiSelectButton disabled" ng-bind-html="varButtonLabel">' +
Hence if the isDisabled attribute is true the drop-down itself will be disabled. IMHO this makes sense as the user doesn’t have to first click to then find out that not a single item can be selected.
What do you think, can this little extension go into the code?
Issue Analytics
- State:
- Created 9 years ago
- Comments:11 (2 by maintainers)
Top Results From Across the Web
how to disable the entire dropdown control in html
According to the HTML 4 spec a select element has a disabled attribute. So <select disabled> <option>Something</option> </select>.
Read more >HTML select disabled Attribute - W3Schools
The disabled attribute is a boolean attribute. When present, it specifies that the drop-down list should be disabled. A disabled drop-down list is...
Read more >How to disable the drop-down list in HTML5 ? - GeeksforGeeks
A disabled drop-down list is un-clickable and unusable. It is a boolean attribute. Attribute Value:
Read more >[Solved] Need help with disabling select box options
So, I need to write a function that checks to see if an option is disabled but not selected across all three menus,...
Read more >disable based on the select dropdown value using jquerytable ...
how to enable/ disable based on the select dropdown value using jquerytable in jquery asp.net c# ; var currentrow = ; currentrow.find ;...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Hi all,
Noted… will provide this much requested feature in the next release. Cheers.
+1 for disabling the dropdown