Skip to content

Commit 33aa531

Browse files
geromegrignonannieyw
authored andcommitted
docs(material/table): add multiTemplateDataRows specification (#20748)
add a section about index (cherry picked from commit 91a9355)
1 parent c7bcac1 commit 33aa531

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/material/table/table.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -346,6 +346,11 @@ container has a complex box shadow and has sibling elements, the stuck cells wil
346346
There is currently an [open issue with Edge](https://developer.microsoft.com/en-us/microsoft-edge/platform/issues/17514118/)
347347
to resolve this.
348348

349+
350+
#### Multiple row templates
351+
352+
When using the `multiTemplateDataRows` directive to support multiple rows for each data object, the context of `*matRowDef` is the same except that the `index` value is replaced by `dataIndex` and `renderIndex`.
353+
349354
### Accessibility
350355
Tables without text or labels should be given a meaningful label via `aria-label` or
351356
`aria-labelledby`. The `aria-readonly` defaults to `true` if it's not set.

0 commit comments

Comments
 (0)