Quantcast
Channel: DataTables 1.10 — DataTables forums
Viewing all articles
Browse latest Browse all 2364

Text wrap in the column

$
0
0

as suggested i tried ellipsis plugin but it is not wrapping text and highlighting the row selection is also now working. Below given code please let me know how to get fixed these issues.

let table = $('#agentSelectionTable').DataTable({
data: availableAgents,
"columns": [{
"data": "userName"
},
{
"data": "firstName"
},
{
"data": "lastName"
},
{
"data": "startDate"
},
{
"data": "endDate"
},
{
"data": "replacementAgent"
},
{
"data": "comment"
}
],
columnDefs: [{
targets: 2,
render: $.fn.dataTable.render.ellipsis(10)
}],
"createdRow": function (row, data, index) {
if (data[5] != "") {
$('td', row).eq(5).addClass('highlight');
}
}
});


Viewing all articles
Browse latest Browse all 2364

Trending Articles