开发者

Custom scrollbars for DATATABLES

Is there any way to 开发者_Go百科customize the scrollbars for the DataTables..?


You can use jScrollPane for this:

http://jscrollpane.kelvinluck.com/

We are currently using the older version but it can be wired up to the datatable after the datatable has been initialised. there will be a a fair bit of CSS work here as well but this is the crux of the code you need to get started:

$('#foo').dataTable({
    "fnInitComplete": function() {
        // custom scroll bars
        $('#icis_dashboard')
        .find('.dataTables_scrollBody')
        .jScrollPane();
    },
    "sScrollY": "242px"
});
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜