How to show array items as checkbox values in alercontroller

#1

I have this lines of code, the first input works fine (auto populate field with label). As for the checkbox, I want it to open array of labels from which I will be able to check. But all I see now is one checkbox with no label.

        {
          name: "seats",
          value: this.selectedSeatObjects.map(st => st.label)
        },
        {
          type: "checkbox",
          value: this.selectedSeatObjects.map(st => st.label),
          checked: true
        }

bugy