Aggregation style for one screen

Hello,

I want to ask you about aggregation style. In my project I have GroupTable and I am using funcion “SetStyleProvider” like this:

        goalsTable.setStyleProvider(new GroupTable.GroupStyleProvider<>(){
            @SuppressWarnings("unchecked")
            @Override
            public String getStyleName(GroupInfo info) {
                Object value = info.getPropertyValue(info.getProperty());
                if (value instanceof MprGoalGroupEnum) {
                    return "ig-goal";
                }
                return null;
            }

            @Override
            public String getStyleName(MprGoal mprGoal, @Nullable String property) {
                return null;
            }
        });

Through this, I am able to change style for each group row for my current screen and that works fine. Now I am thinking if there is any way to change aggregation row and its style. I can add lines into scss file like this and aggregation row will be different

.v-table-arow-row {
    background: lightgreen;
}

But this will change every aggregation row in our application and I would like to change it only on 1 screen. Is there any way to change it on Controller like for Groups?

Thank you
Pavel

Hi,

Assign custom stylename to a table and style aggregation row considering custom stylename, e.g.:

<groupTable stylename="my-table" ...>
.my-table .v-table-arow-row {
    background: lightgreen;
}

Regards,
Gleb

Hi, thank you very much, this is exactly what I needed.

Paul