The following example seems to make the datatable editable:
webix.ui({
view: 'datatable',
data: grid_data,
editable: true , // yay editable
columns: [
{ id: 'title', header: 'Title' },
{ id: 'year', header: 'Year' },
{ id: 'rating', header: 'Rating' }
],
// not editable actually
});
The problem is that when specifying columns
, you must specify the editor type for each column. However, if you don’t, editable: true
is misleading.
My suggestion would be: if editable
is set to true
, then run autoConfig for those columns that don’t have an editor
field, and determine the right editor. Alternatively, warn that editable: true
is incompatible with specifying columns
.