Choosing from subset of options for richselect editor of datatable.

Hello. Let’s say I have list of options for richselect datatable cell editor. E.g.
[{id:1,value:‘Option 1’},{id:2,value:‘Option 2’},{id:3,value:‘Option 3’}]. I want to enable richselect editor for datatable, but I want to filter this original list when I open editor. E.g. if data for row I clicked has property enabled set as true, I want to be able to choose only ‘Option1’ or ‘Option2’, not ‘Option3’, but if property enabled is set false, I can choose all three options.

try to use onAfterEditStart event and filter editor popup list there

{
  on:{
    onAfterEditStart: function(cell){
      if(cell.column=="required_column"){
        var editor = this.getEditor();
        editor.getPopup().getList().filter(function(obj){
          return obj.filtered
        })
      }      
    }
  }
}

https://docs.webix.com/api__link__ui.datatable_geteditor.html
https://docs.webix.com/api__link__ui.list_filter.html

@intregal
Yes, that works great. Exactly what I needed. Thank you.