I able to add id to each row of data table using rowId ,as explained in documentation.
$('#myTable').DataTable( {
ajax: '/api/staff',
rowId: 'staffId'
} );
But how do I add data-* attributes to the row.
For example I want to have add data-spaceid and ata-enrollmentid to the row.
<tr data-spaceid="20146" data-enrollmentid="32" id="123"/>