DataTables: How to set classes to table row cells (but not to table header cells!)

前端 未结 4 1217
轻奢々
轻奢々 2021-02-05 10:36

i have a really nice style for my tables.

{ sorry links no more working }

I had to add sClass so that new rows (added by fnAddData) get the right classe

4条回答
  •  后悔当初
    2021-02-05 10:43

    Set the default classes before.

    $.fn.dataTableExt.oStdClasses.sStripeOdd = '';
    
    $.fn.dataTableExt.oStdClasses.sStripeEven = '';
    

    For further references see here http://www.datatables.net/styling/custom_classes

提交回复
热议问题