c# - 有什么方法可以将表单应用于所有列或整个表?
问题描述
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[] 内部,是否有任何方法可以在不指定列名的情况下应用相同的属性属性。
解决方案
看一眼:
http://tabulator.info/docs/4.6/modules#default
它提供了一种提供默认设置选项的方法。
推荐阅读
- python - Pandas 中数字范围的分布
- java - 不同类型的排序及其时间
- exception - 为什么 vxworks 寄存器 r3 在执行前被篡改?
- neo4j - Neo4j:从叶子迭代到父对象并找到共同的子对象
- php - 在 PHP 中回显特定的 JSON 节点
- .htaccess - Cloud9 (C9) AWS EC2 .htaccess 被忽略
- flexbox - Object-fit:在 IE 中修复封面灯箱画廊?
- python - 当程序在 Python 中循环时,如何从列表中的用户获取多个输入以进行打印?
- javascript - 补间/动画threejs相机到顶视图
- android - 谷歌地图中的地址位置