[英]Dynamically set the column editor for each row in tabulator
我有一个客户,每行都有元数据,描述列中的数据类型。 是否可以为每一行的列设置不同的编辑器?
var tab = new Tabulator('#tabId', {
data: data,
layout: 'fitColumns',
columns: [
{
title: 'Name',
field: 'LocationName',
},
{
title: 'Field',
field: 'Field',
editor: (cell, onRendered, success, cancel, editorParams) => {
// is it possible to just return one of the built in editors here, if so how?
// I only need text, date, checkbox built-in types, but need to determine which
// one dynamically based on data in the row.
}
}
]
});
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.