Applying slimscroll to datatables

2k Views Asked by At

Am trying to apply the slimscroll for datatable. There is pre-defined vertical as well as horizontal bars for datatable.Is there any possibility to apply the slimscroll for datatable? Please let me know.

Thanks in advance.

1

There are 1 best solutions below

1
On

Yes you can apply slimscroll to datatable by adding below function in your datatable code

            "fnInitComplete":function(){
                $('.dataTables_scrollBody').slimscroll();
            },

Also check this out too Can we apply SlimScroll or PerfectScrollbar plugin to jQuery Datatable default vertical scroll