Shabarish Shetty
Shabarish Shetty

Reputation: 132

How to change color of filtered information when it is in search mode (Datatables)

How to change color of filtered information when it is in search mode (Datatables) Since it is a Datatables plugin am unable to find the exact code of only the filtered information . enter image description here

Upvotes: 0

Views: 118

Answers (1)

Gyrocode.com
Gyrocode.com

Reputation: 58900

You can use language option to override text used in informational panel and use HTML markup as well.

For example:

var table = $('#example').DataTable({
    "language": {
        "infoEmpty":      "Showing 0 to 0 of 0 entries",
        "infoFiltered":   "(filtered from <b>_MAX_</b> total entries)"      
     }
});

See this example for code and demonstration.

Upvotes: 1

Related Questions