How to get editor items?
Last 3 lines return ‘undefined’ only.
var data = [
{Column1: "One", Column2: 2},
{Column1: "Two", Column2: 1}
];
webix.ui({
id: "table",
view: "datatable",
data: data,
editable: true,
columns: [
{
id: "Column1",
},
{
id: "Column2",
header: "Column label",
editor: "select",
options: [
{id: 1, value: 'One'},
{id: 2, value: 'Two'},
]
},
],
});
var table = $$('table');
console.log(table.getEditor("Column2"));
console.log(table.getEditor(1, "Column2"));
console.log(table.getEditorValue());