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: 20Questions: 9Answers: 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: 10,585Questions: 25Answers: 2,409
    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

Sign In or Register to comment.