editable: true doesn't do anything if columns don't have editor specified

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.

I’m not sure that this is the best strategy. Automatic editor enabling is good for prototyping, but for real life app you will want to control which columns are editable and which not.

Also, it is more convenient to have a single “switch” to enable|disable edit operations ( for example for different type of users ) instead of changing editors in each column separately.

Makes sense. I’ve added a comment on the editable doc page.