Rows are grouped with the groupRowsBy property. When rowGroupMode is set as subheader, a header and footer can be displayed for each group. The content of a group header is provided with groupheader and footer
with groupfooter slots.
{{ slotProps.data.representative.name }}
{{ slotProps.data.country.name }}
Total Customers: {{ calculateCustomerTotal(slotProps.data.representative.name) }}