angularjs-dropdown-multiselect icon indicating copy to clipboard operation
angularjs-dropdown-multiselect copied to clipboard

Disable angularjs-dropdown-multiselect based on condition check

Open varunprakas opened this issue 9 years ago • 6 comments

Hello,

Is there any way to Enable and Disable angularjs-dropdown-multiselect based on condition check?

Thanks Varun

varunprakas avatar Jul 12 '16 18:07 varunprakas

@Varunprakas I think we can do it by using $scope.example12settings = {selectionLimit: 1} conditionally. If you want to disable multiselect i.e you need to enable single item selection set this property or else donot set this option to enable multiselect option.

Ashviniv avatar Jul 27 '16 17:07 Ashviniv

Thank for reply, But I want to make this ready only if I want to display data but not editable mode. Alternative I can do with two element one as text box & this element by ng-show based on condition. I just thinking same can be done by same element.

amitchoudhary151417 avatar Sep 15 '16 04:09 amitchoudhary151417

@amitchoudhary151417 If I am not wrong, you want an option for single element to behave as both multiselect and single select which will be decided by a directive like 'ng-show. And you want multiselect on index or show page where you show your data. And single select on edit or create form?. Can you please make it clear.

Ashviniv avatar Sep 16 '16 03:09 Ashviniv

You can set disabled for each option which locks that option in it's current state. (That's the only way we have right now) If you still are interested in a read-only feature could you please comment? else i'm closing this issue in 2 weeks)

pkempenaers avatar Mar 19 '17 20:03 pkempenaers

Hi !!!!,

I'm having more number of multiselct dropdown, I should hide a select dropdown based on the input of another one, how to achieve this and is there validation to apply dynamically.

Thanks

RasaMohamed avatar Jun 18 '17 00:06 RasaMohamed

Hi.. ! You can simply use this <div isteven-multi-select input-model="inputmodel" output-model="outputmodel" button-label="Name" item-label="Name" tick-property="" disable-property="" on-item-click="OnClickChanged()" on-select-all="OnClickChanged()" on-select-none="OnClickChanged()" is-disabled="true"> </div>

kasunwadasinghe avatar Feb 07 '18 10:02 kasunwadasinghe