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

ArgTypes configuration for array of objects #18681

Open
alexandermirzoyan opened this issue Jul 11, 2022 Discussed in #18680 · 3 comments
Open

ArgTypes configuration for array of objects #18681

alexandermirzoyan opened this issue Jul 11, 2022 Discussed in #18680 · 3 comments

Comments

@alexandermirzoyan
Copy link

Discussed in #18680

Originally posted by alexandermirzoyan July 11, 2022
Hi all,
I have a web component which accepts an array of objects with a custom scheme. Is there any way how can I configure the pattern.
I want that icon property would accept only a select control.

Current config that I use.

argTypes: {
    options: {
      control: { type: 'array' },
      title: { control: 'text' },
      icon: { control: 'select', options: ICONS },
      action: { control: 'text' },
      link: { control: 'text' },
    },
  },

image

@ndelangen
Copy link
Member

This is currently not yet possible.

Do you have an idea on how this could be implemented? We'd welcome a PR adding this option.

@mcrodriguezb
Copy link

Any progress on this? Maybe, I'm lucky and it is supported in V8.

@alexandermirzoyan
Copy link
Author

Any progress on this? Maybe, I'm lucky and it is supported in V8.

Wow, that's cool 🎉
So if it is working in v8 I guess we can close this issue.

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

3 participants