Print css not working with print customize

Print css not working with print customize

Vishakha-92Vishakha-92 Posts: 36Questions: 2Answers: 0

http://live.datatables.net/rowabebi/1/edit

I want to add background color to a column.
I have added a class name ("order-items") to the td, but it doesn't seem to be working with print customize

"buttons": [
         $.extend(true, {}, buttonCommon, {
           extend: 'print',
           exportOptions: { columns: ':visible' },
           customize: function ( win ) {
             $(win.document.body).find('table tr td.order-items')
               .css('background-color', 'red');
           }
         }),
       ],

Replies

Sign In or Register to comment.