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

[Feat]: Extend ComboboxOption to support disabled state of menu items #4775

Open
1 task done
spdev3000 opened this issue Sep 19, 2024 · 0 comments
Open
1 task done
Labels
Component: Combobox enhancement New feature or request needs jira ticket triage An issue needing triage

Comments

@spdev3000
Copy link
Collaborator

Code of conduct

  • I agree to follow this project's code of conduct.

Impacted component(s)

Combobox

Description of the requested feature

As a user I'd like to disable certain items in a combobox so I can see that those values/items exists, but aren't selectable.

Mockups or screenshots

Screenshot 2024-09-19 at 18 17 11

Implementation notes or ideas

Extend Combobox options with boolean param: disabled , see:

export type ComboboxOption = {

such as

export type ComboboxOption = {
    value: string;
    itemText: string;
    disabled: boolean;
};

and map that disabled state to related menu-item. Check if selection process will still work and disabled menu item won't be selected when user presses keyUp/keyDown.

@spdev3000 spdev3000 added enhancement New feature or request Component: Combobox triage An issue needing triage needs jira ticket labels Sep 19, 2024
@spdev3000 spdev3000 changed the title [Feat]: Extend Combobox-options to support disabled-state of menu-items [Feat]: Extend ComboboxOption to support disabled state of menu items Sep 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component: Combobox enhancement New feature or request needs jira ticket triage An issue needing triage
Projects
None yet
Development

No branches or pull requests

1 participant