json-editor
json-editor copied to clipboard
How do I set the value of an enumeration type
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!