dataGrid Styling: flowUI

How can I style my dataGrid in flowUI as per Vaadin documentation here?

I tried the following but it looks like setPartNameGenerator is not recognized in Jmix, missing anything?

allowanceRateEmployeeTable.setPartNameGenerator(person -> {
            if (person.getExcludeEmployee() ==true)
                return "high-rating";
            return null;
        });

The Jmix FlowUI 1.5 is based on Vaadin 23.3, so use the corresponding Vaadin documentation page: Grid | Components | Vaadin Docs