Add style (bold) to raw.data
Add style (bold) to raw.data
Fabris
Posts: 7Questions: 4Answers: 0
I am using this:
$(document).ready( function () {
$('#tabellamail').DataTable({
"dom": "Bfrtip",
"paging": true,
"responsive": true,
"select": true,
"order": [[ 0, "desc" ]],
data: [ **Data** ],
columns: [
{ data: "id_helpy", visible: false },
{ data: "body",
render: function ( data, type, row ) {
return row.time + '<br>' + row.from + '<br>' + row.body; } },
{ data: "labels"},
]
} );
var table = $('#tabellamail').DataTable();
table.on('click', 'tr', function () {
var data = {
"id_helpy": table.row( this ).data().id_helpy,
"priority" : table.row( this ).data().priority,
"assigned" : table.row( this ).data().assigned
};
var obj = JSON.stringify(data);
var theURL = "fmp://$/**FileName**?script=HE_ClickMail¶m=" + obj;
window.location = theURL;
})
});
I would like to add bold just to row.time and not to the rest of the same column. Is it possible?
Thanks!
This question has an accepted answers - jump to answer
Answers
Thank you !