有没有办法对所有列或整个表应用表格?

问题描述 投票:1回答:1
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 []可以使用任何方法来应用相同的属性,而无需指定列名。

c# html tabulator
1个回答
0
投票

看看:

© www.soinside.com 2019 - 2024. All rights reserved.