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

How to disable check box in dropdown?

Open kalandher opened this issue 3 years ago • 1 comments

is saw there is way to customize label but is there a way to disable check box based on data in dropdown?

kalandher avatar Dec 06 '21 11:12 kalandher

To disable item in the dropdown just add disabled: true for the item.

this.dropdownData = responseData
   .map((dataItem, index) => ({
      id: dataItem.id,
      itemName: dataItem.number,
      disabled: index % 2 ? true : false
  }))

image

georgi-kirov avatar Jul 28 '23 23:07 georgi-kirov