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

How do I set the value of an enumeration type #822

Open
mangowr opened this issue Sep 6, 2018 · 0 comments
Open

How do I set the value of an enumeration type #822

mangowr opened this issue Sep 6, 2018 · 0 comments

Comments

@mangowr
Copy link

mangowr commented Sep 6, 2018

I want to update the value of the select in the code, but the setValue () function is invalid.

image: {
            type: "string",
            format:"select",
            propertyOrder: 110,
            enum:['aaa'],
          //  default: "",
            options: {
                grid_columns: 4,
            },
            description: "URL pointing to the Docker image for all tasks in the job",
        },
editor.setValue({image: "bbb"});

Could you tell me the correct way to use it? Thank you!

btsimonh pushed a commit to btsimonh/json-editor that referenced this issue May 26, 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