How do I change the background of an entire row all elements

How do I change the background of an entire row all elements

rdigiorgiordigiorgio Posts: 29Questions: 11Answers: 0

"createdRow": function (row, data, index) { console.log ( "createdRow:" + index) },

I have not found an example that allows me to change the bg color of the entire row when using Bootstrap 4

This question has an accepted answers - jump to answer

Answers

  • kthorngrenkthorngren Posts: 21,351Questions: 26Answers: 4,955
    Answer ✓

    Here is a non-Bootstrap example:
    http://live.datatables.net/muyemace/1/edit

    Note the CSS tab has this:

    table#example.dataTable tbody tr.Highlight > .sorting_1 {
        background-color: #ffa;
    }
    
    table#example.dataTable tbody tr.Highlight {
        background-color: #ffa;
    }
    

    Haven't tried this with Bootstrap. You can inspect your table to see CSS changes needed.

    Kevin

This discussion has been closed.