Skip to content

Adding color classes to DataTable does not work. #3

@evolvitus

Description

@evolvitus

When I try to add color class to DataTable element in

$('#dtDataTable').DataTable( {
  createRow: function(row, data, dataIndex) {
    $(row).addClass('bg-lime');
  },
});

background color does not work. But when i add bootstrap color class (ie: bg-success) it does work well and (in given example) all rows are colored. I think it's because of missing !important attribute on color.
It does not matter where I put CSS file declaration (it's after bootstrap's CSS).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions