Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to disable check box in dropdown? #595

Open
kalandher opened this issue Dec 6, 2021 · 1 comment
Open

How to disable check box in dropdown? #595

kalandher opened this issue Dec 6, 2021 · 1 comment

Comments

@kalandher
Copy link

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

@georgi-kirov
Copy link

georgi-kirov commented Jul 28, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants