Is there a way to apply ellipsis for rendered column ?
Is there a way to apply ellipsis for rendered column ?
smeghzifen
Posts: 1Questions: 1Answers: 0
Hi everybody,
I want to to apply ellipsis for rendered column as bellow ?
$('#tableID').DataTable({
columns: [
{
"data": "profils", // column index number 2.
"render": "[, ].name" // building string with comma separator.
},
...
],
columnDefs: [
{
targets: 2,
render: $.fn.dataTable.render.ellipsis(5)
}
],
...
}
This discussion has been closed.
Answers
You need to combine the two renderers together. A column can only have a single rendering function, so you would need to do something like:
Regards,
Allan