我如何创建动态表格,如航空公司准时绩效中的示例一样,请参见Crossfilter主页上的示例
我用了这个。它有效:)
<div class="row">
<table id='data-table'>
<thead>
<tr class='header'>
<th>TestCase</th>
<th>TestScript</th>
<th>MonType</th>
</tr>
</thead>
</table>
</div>
dc.dataTable('#data-table')
.dimension(TestCaseDim)
.group(function (d) {
return d.Timestamp.bold().fontcolor("darkblue");
})
.columns([
function (d) { return d.TestCase; },
function (d) { return d.TestScript; },
function (d) { return d.MonitorType; }
])
.size(500)
.order(d3.descending)
.renderlet(function (table) {
table.selectAll('.dc-table-group').classed('info', true);
});
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句