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"
});
精彩评论