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

Infer multiple select control for arg type Array<Enum> #12674

Open
graup opened this issue Oct 6, 2020 · 1 comment
Open

Infer multiple select control for arg type Array<Enum> #12674

graup opened this issue Oct 6, 2020 · 1 comment

Comments

@graup
Copy link
Contributor

graup commented Oct 6, 2020

If an arg can be an array of an enum, we could infer a control of type multi-select, check or inline-check. Currently it just shows the default JSON textfield.

Maybe we can use inline-check if its 1-4 options and multi-select for more than that?

Example:

interface Props {
  fileType: 'directory' | 'file';
  fileTypes: ('directory' | 'file')[];
}

Screen Shot 2020-10-06 at 19 06 04

(Using union type here since enum types aren't working, but that's another issue #12531)

@stale
Copy link

stale bot commented Dec 26, 2020

Hi everyone! Seems like there hasn't been much going on in this issue lately. If there are still questions, comments, or bugs, please feel free to continue the discussion. Unfortunately, we don't have time to get to every issue. We are always open to contributions so please send us a pull request if you would like to help. Inactive issues will be closed after 30 days. Thanks!

@stale stale bot added the inactive label Dec 26, 2020
@shilman shilman added this to the 8.x controls milestone Jun 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants