Add an id to each column of a row
Add an id to each column of a row
Molax
Posts: 3Questions: 2Answers: 0
Hi , i have a datatable like
aluno.global.table = $('#tableAluno').DataTable({
"bScrollInfinite": false,
"bScrollCollapse": true,
"sScrollY": "500px",
"bPaginate": false,
data: data,
columns: [
{ data: 'PK_STUDENT' },
{ data: 'NAME' },
{ data: 'CPF' },
{ data: 'EMAIL' },
{ data: 'PASSWORD' }
]
});
i want to put on each " data : 'example' " an specific ID on each of those.
can anyone please help me with that?
Edited by Allan - Syntax highlighting. Details on how to highlight code using markdown can be found in this guide.
This discussion has been closed.
Answers
I don't know what
data: 'example'
is, but you can usecolumns.createdCell
to add an id to each cell.Allan