TotalsRow component: possibility to specify aggregating function