question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Support for disabling whole drop-down box

See original GitHub issue

It 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:open
  • Created 9 years ago
  • Comments:11 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
istevencommented, May 30, 2015

Hi all,

Noted… will provide this much requested feature in the next release. Cheers.

0reactions
Xelosscommented, Jan 6, 2020

+1 for disabling the dropdown

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found