var table = new Tabulator("#Mytable",
{
layout:"fitColumns",
columns: [
{ title: "Name",formatter:html, variableHeight:true},
{ title: "Ingredients in1 L" ,formatter:html, variableHeight:true},
{ title: "Type of solution",formatter:html, variableHeight:true},
{ title: "pH",formatter:html, variableHeight:true},//"html" }
{ title: "Normal osmolarity (240‐340 mOsm/L)",formatter:htmlWrapFormatter, variableHeight:true},//"html" }
]
});
Inside column []可以使用任何方法来应用相同的属性,而无需指定列名。
看看: