您如何访问或确定 Tabulator 参数是什么 set/needed

How do you access or determine what Tabulator params are set/needed

http://tabulator.info/docs/4.6/edit 举例说明:

//define lookup function
function paramLookup(cell){
    //cell - the cell component

    //do some processing and return the param object
    return {param1:"green"};
}

//column definition
{title:"Rating", field:"rating", editor:"star", editorParams:paramLookup}

您如何在设置后访问参数,甚至确定要设置的参数?

您可以查看 table.options,其中 table 是制表符实例,options 是所有当前制表符选项的对象。

这是一个 fiddle,您可以 运行。它会将 table 选项写入文档正文,但很难阅读。如果您查看控制台,它还会记录 table 实例和 table.options 对象。

https://jsfiddle.net/nrayburn/j506cvea/4/

您还可以查看原型以找到其他一些可能有用的方法。例如,table.getColumnDefinitions() returns table 的当前列定义。