0
Look at this code
defaultContent: '<i class="fa fa-close pull-right js-customer-delete"style="color: #0066FF; text-decoration: none; cursor: pointer; margin-left:10px"data-id=""data-url=""></i> <i class="fa fa-edit pull-right js-customer-edit"style="color: #0066FF; text-decoration: none; cursor: pointer"data-id=""data-url=""></i>'
I can insert an extra column into the Datatable with the value I want.
Then I managed to insert a class into the 'tr' (which is a row
)...
$(row).addClass('tr-customer');
But I cannot insert a data-id and data-url into this Row'.
I’ve tried to
$(row).data('id', 'valor_qualquer')
But he doesn’t insert.
Question: as I enter a data-id and data-url inside the tr from Datatable?
Expected result:
<tr class="tr-customer" data-id="" data-url=""></tr>