How can i use DataSource in CheckboxGroup instead of static data items ?
In below code instead of hardcoded items i want to use the Datasource so that the Checkbox get rendered based on data returned by API.
I tried to put "dataSource" element instead of items but no luck
Can you let me know how we can achieve this ?
{
field: "CheckBoxGroup",
editor: "CheckBoxGroup",
label: "Select Status:",
validation: { required: false },
editorOptions: {
items: ["English", "Russian", "Spanish"],
layout: "horizontal",
labelPosition: "before"
}
}
In below code instead of hardcoded items i want to use the Datasource so that the Checkbox get rendered based on data returned by API.
I tried to put "dataSource" element instead of items but no luck
Can you let me know how we can achieve this ?
{
field: "CheckBoxGroup",
editor: "CheckBoxGroup",
label: "Select Status:",
validation: { required: false },
editorOptions: {
items: ["English", "Russian", "Spanish"],
layout: "horizontal",
labelPosition: "before"
}
}