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

initialValue? #12

Closed
RustyDev opened this issue Jun 1, 2021 · 1 comment
Closed

initialValue? #12

RustyDev opened this issue Jun 1, 2021 · 1 comment

Comments

@RustyDev
Copy link

RustyDev commented Jun 1, 2021

Is it possible to set an initialValue?

@RustyDev
Copy link
Author

RustyDev commented Jun 1, 2021

Was able to resolve it:

    {
      title: 'Button Color',
      description: 'Pick a color',
      name: 'buttonColor',
      type: 'colorlist',
      options: {
        list: [
          {title: 'black', value: '#333333'},
          {title: 'blue', value: '#437c90'},
          {title: 'white', value: '#ffffff'}
        ]
      },
      initialValue: {
        title: 'black',
        value: '#333333'
      }
    },

Would be nice to add this to the documentation 😀

@RustyDev RustyDev closed this as completed Jun 1, 2021
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

1 participant