angular-multi-select icon indicating copy to clipboard operation
angular-multi-select copied to clipboard

Disable Select Button

Open shoaibshakeel381 opened this issue 10 years ago • 2 comments

Currently is-disabled attribute disables items/options in select dropdown. But we don't have any means of completely disabling whole element. So either we should change is-disabled functionality to disable whole element. Like this:

// main button
'<button id="{{directiveId}}" type="button"' +                
    'ng-click="toggleCheckboxes( $event ); refreshSelectedItems(); refreshButton(); prepareGrouping; prepareIndex();"' +
    'ng-bind-html="varButtonLabel"' +
    'ng-disabled="isDisabled"' +
'>' +
'</button>' +

Or introduce new attribute to do so.

shoaibshakeel381 avatar Oct 08 '15 06:10 shoaibshakeel381

+1

an attribute to disable the whole component would be really nice.

andreipaz avatar Nov 19 '15 20:11 andreipaz

Even better would be to use ng-disabled.

GideonPARANOID avatar Jan 20 '16 10:01 GideonPARANOID

In the template you will find a property for the button 'ng-disabled="disable-button"'. It doesn't appear that "disable-button" is actually set anywhere. I just changed it to "isDisabled" like the rest of the controls.

T89L avatar Jul 20 '16 14:07 T89L