制表符具有内置格式化程序color
有没有办法设置默认列颜色(对于所有单元格)?
就像是:
columns: [
{ width: 50, color: "red" },
]
Run Code Online (Sandbox Code Playgroud)
格式化程序中没有内置的默认方法,但您可以仅使用简单的 CSS 来设置具有给定字段名称的列中单元格的背景颜色
.tabulator .tabulator-row .tabulator-cell[tabulator-field="fieldname"]{
background-color:red;
}
Run Code Online (Sandbox Code Playgroud)