components icon indicating copy to clipboard operation
components copied to clipboard

feat(cdk/table): Possibility to add custom context to each row cell

Open gongAll opened this issue 1 year ago • 0 comments

Feature Description

Currently, the only context passed to the cell is: count, first, last, even, odd. However, this only works properly without pagination. If the table has pagination, we're stuck with these basic variables that are only relative to the page in display and not relative to the whole dataset being used, under the hood.

I'd would suggest giving the possibility to customize this behaviour via an optional method that is called when you run "_updateRowIndexContext". This new optional method would receive the context object that you currently have and expand on it according to what each project requires.

Use Case

No response

gongAll avatar Aug 01 '24 19:08 gongAll