Material Dynamic Table Angular component - typescript part
✓ Published0🌍 Public
Aackuser
Last edited Feb 16, 2023
Created on Jan 17, 2024
This Angular component builds a dynamic Material Design table by registering column, row, header, and footer definitions from projected content. It accepts `displayedColumns`, `displayColumnDefs`, and `dataList` inputs, and emits a `rowSelected` event on click. The code uses Angular Material’s `MatTableDataSource`, `MatTable`, `SelectionModel`, and content queries (`@ContentChildren`) to wire up table parts, while `ngOnChanges` rebuilds the data source when the input list changes. The `showFooter` input controls footer row registration, and `highlightRowIndex` is provided for styling but not handled in this TypeScript portion.
AI-generated description