【发布时间】:2021-05-21 05:19:54
【问题描述】:
【问题讨论】:
标签: javascript uitableview user-interface angular-material tabulator
【问题讨论】:
标签: javascript uitableview user-interface angular-material tabulator
我不使用 angular,但我有自己的幻灯片切换,只使用格式化程序“html”。所以我认为您可以根据需要获取要插入的代码/对象
https://jsfiddle.net/o5whLz4j/
new Tabulator("#tabulator", {
data:[ {
"one": '<input id="oneone" type="checkbox" class="switch"><label id="oneonelabel" for="oneone">One</label>',
"two": "1",
},{
"one": '<input id="onetwo" type="checkbox" class="switch"><label id="onetwolabel" for="onetwo">Two</label>',
"two": "2",
},{
"one": '<input id="onethree" type="checkbox" class="switch"><label id="onethreelabel" for="onethree">Three</label>',
"two": "3",
},
],
columns: [{
title: "One",
field: "one",
formatter: "html",
},
{
title: "Two",
field: "two",
},
],
});
【讨论】: