【问题标题】:is there any way to apply formmatter to all column or whole table?有什么方法可以将 formmatter 应用于所有列或整个表?
【发布时间】:2020-05-30 16:12:49
【问题描述】:
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# html tabulator


    【解决方案1】:

    看看:

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

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

    【讨论】:

      猜你喜欢
      • 2022-10-06
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-10-01
      • 1970-01-01
      • 2019-12-28
      • 2011-10-19
      • 2018-03-19
      相关资源
      最近更新 更多