Hello!
I use DataTable UI widget with combo column. The data for this column comes from a get request from the API service. But they have the following form:
[{ Id: 1, Name: "First"}, {Id: 2, Name: "Second" }]
Most likely, the widget expects id (with a small letter) and value instead of “Id” and “Name”. How do I specify that id is “Id” and value is “Name”?
let catData = new webix.DataCollection({
url: "/api/category",
});
view: "datatable",
columns: [
{ id: "CategoryId", editor: "combo", options: catData, header: "Category", width: 200 },
],