oracle-apex-5.1

Customize Interactive Grid header using configuration object


I'm trying to set the background color of column headers in an Interactive Grid form. There are a couple of things that I've tried:

So the question is:

How to customize Interactive Grid column header (namely, set its background color) using configuration object?

I suppose this might be considered a separate question, but if that turns out to be impossible, what would be the best alternative?


Solution

  • Re an alternative, if the change is static you can do it using page-level CSS. Each heading has a data-idx attribute whose value is a number unique within the grid. So if your IG region has the static ID "myRegion" then you can add CSS like the following to target a specific header:

    #myRegion_ig th[data-idx="2"] {
        background-color: #dff;
    }
    

    Or to make all IG headers on the page the same:

    .a-GV-header {
        background-color: #dff;
    }