feat(cdk/table): Possibility to add custom context to each row cell
- Lenguaje dominante
- TypeScript
- Estrellas
- 25k
- Forks
- 6.8k
- Merge medio
- 1 d 8 h
- PR fusionados (30 d)
- 91
Descripción
### 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_
Guía de contribución
Línea de trabajo
Comienza localizando la implementación de tabla de Angular CDK que contiene _updateRowIndexContext y lee cómo se construye el contexto actual de count, first, last, even y odd. Determina la API de personalización opcional y añade cobertura para filas paginadas; se considera terminado cuando los proyectos pueden ampliar el contexto con valores relativos al conjunto de datos sin romper el contexto existente.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- typescript
- Área
- frontend
- Tipo de issue
- Nueva funcionalidad
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Estado de actividad
- Estancado
- Claridad
- Bastante claro
- Aptitud para principiantes
- 42/100