json-editor icon indicating copy to clipboard operation
json-editor copied to clipboard

How do I set the value of an enumeration type

Open mangowr opened this issue 5 years ago • 0 comments

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!

mangowr avatar Sep 06 '18 07:09 mangowr