Disable Select Button
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.
+1
an attribute to disable the whole component would be really nice.
Even better would be to use ng-disabled.
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.