jdorn / json-editor

JSON Schema Based Editor

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How do I set the value of an enumeration type

mangowr opened this issue · 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!