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

[Feature] OuiSplitButton - options - allow "disabled" #1195

Open
pjfitzgibbons opened this issue Dec 28, 2023 · 0 comments
Open

[Feature] OuiSplitButton - options - allow "disabled" #1195

pjfitzgibbons opened this issue Dec 28, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@pjfitzgibbons
Copy link
Contributor

Is your feature request related to a problem? Please describe.
Recently released SplitButton has only "simple" options items - string or ReactNode.

I want to be able to have some option items displayed as "disabled" for cases where an item
should be presented to the user, though not available for selection at this time / in this context.

Describe the solution you'd like

Extend Options items to be string | ReactNode | SplitButtonOption where :

interface SplitButtonOption {
  disabled?: boolean;
  value?: string;
  display: string | ReactNode
}

Describe alternatives you've considered
OuiSuperSelect has "all the bells and whistles" for Options Items, though some of those features do not fit the context of SplitButton, like "inputDisplay" vs "dropdownDisplay". A simple extension of the existing type on SplitButton will do.

Additional context

Reference Issue #1187

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

No branches or pull requests

2 participants