首页 > 解决方案 > 有什么方法可以将表单应用于所有列或整个表?

问题描述

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" }
        ]
    });

在 column[] 内部,是否有任何方法可以在不指定列名的情况下应用相同的属性属性。

标签: c#htmltabulator

解决方案


看一眼:

http://tabulator.info/docs/4.6/modules#default

它提供了一种提供默认设置选项的方法。


推荐阅读