Represent multiple checkbox values in DOM data source

Represent multiple checkbox values in DOM data source

beerygazbeerygaz Posts: 16Questions: 9Answers: 0
edited May 2017 in Editor

I have an editor field that is a checkbox:

{
                "label": "Features",
                "name": "features",
                "type": "checkbox",
                options: [
                    { label: "Scenes", value: 1 },
                    { label: "Zones", value: 2 }
               ]
}

How do I represent both checkboxes being checked in the DOM data in my datatable? If I try set the column in the table to "1" it works, but "1,2" or "[1,2]" does not select both check boxes.

-- Solved --
I represent my data as comma separated vlaues and use the following syntax:

{
                "label": "Features",
                "name": "features",
                "type": "checkbox",
                options: {
                    "Scenes": 1,
                    "Zones": 2 },
               separator: ","
}
This discussion has been closed.