Oracle APEX Color Interactive Grid (IG) group header using CSS
- Get link
- X
- Other Apps
This post describes how to colour a group header on an Interactive Grid. Using Version 19.2 but this should work on all versions.
Groups are when you create a group and place columns into the group like this;
I want to colour the Research & Teaching Group header to be this;
Open the page containing the IG and open Developer tools in Chrome then click on the selector tool (arrow top left).
Click the region you header you want to style, in my case Research & Teaching UoFGS. In developer tools right click on the selected element and copy the selector.
This gets copied;
#rgBenchmarkingIG_ig_grid_vc > div.a-GV-hdr.js-stickyWidget-toggle > div.a-GV-w-hdr > table > thead > tr:nth-child(1) > th:nth-child(2)
I dont only want to colour the selected column I want to colour the whole row, so I remove;
> th:nth-child(2)
and place the following CSS into inline CSS or preferably a CSS file;
#rgBenchmarkingIG_ig_grid_vc > div.a-GV-hdr.js-stickyWidget-toggle > div.a-GV-w-hdr > table > thead > tr:nth-child(1){
background: #87CEEB!important;
}
The IG;
Now becomes this;
Comments
Post a Comment