Add style (bold) to raw.data

Add style (bold) to raw.data

FabrisFabris 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&param=" + 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

  • rf1234rf1234 Posts: 3,000Questions: 87Answers: 421
    Answer ✓
    return '<strong>' + row.time + '</strong>' + '<br>' + row.from + '<br>' + row.body; } },
    
  • FabrisFabris Posts: 7Questions: 4Answers: 0

    Thank you !

Sign In or Register to comment.