dv-chart-rolling-table
v0.0.3
Published
auto scrolling table
Downloads
3
Readme
简单的自滚动表格
dom要求
传入的$container 是一个jquery对象,是在table dom上的id
dom定义example:
<table id="one_table" class="rolling_table">
<thead>
<tr>
<td>时间</td>
<td>关键词</td>
<td>事件内容</td>
</tr>
</thead>
<tbody></tbody>
</table>
在ML的调用 example
var $ = require('jquery');
var AutoRoll = require('../auto_roll_base/index.js');
var Event = require('bcore/event');
function AutoRollTableTest(container, options){
this.container = $(container);
this.options = options;
this.options.intID = $(container).attr('id')+'_int';
}
Event.extend(AutoRollTableTest, {
render: function(data) {
var tableOne = new AutoRoll(this.container, this.options, data);
}
});
module.exports = AutoRollTableTest;