How to add print button on each row in datatable?

How to add print button on each row in datatable?

bichdieubichdieu Posts: 2Questions: 0Answers: 0
edited November 2017 in Free community support

Hello all,
I want to add the print button on each row in datatable to print out the current row or print out all rows of table.
For now, I'm using columnDefs to add the print button but it the print action didn't work:
"columnDefs": [ {
"targets": -1,
"data": null,
"defaultContent": '

'
} ]
Please help me out this issue.
Regards,

Replies

  • bichdieubichdieu Posts: 2Questions: 0Answers: 0
    edited November 2017

    This is the defaultContent:
    <div class="dt-buttons"><a class="dt-button buttons-print btn btn-primary btn-sm m-5 width-140 assets-select-btn export-print" tabindex="0" aria-controls="booking_list" href="#"><span><i class="fa fa-lg fa-print"></i></span></a> </div>

This discussion has been closed.