Search code examples
vue.jstabulator

Tabulator: Load editor params on cell focus


When we focus on a row, this row loads all editor params of all editable columns, is there a way to only load the editor params only when we focus on that editable column?


Solution

  • Yes you can pass a callback function into the editorParams column definition option that will be called when the editor is loaded. this function will need to return the params object:

    {title:"Name", field:"name", editor:"select", editorParams:function(cell){
        return {values:["bob", "steve", "jim"]};
    }
    
    

    full details can be found in the Editor Documentation