Angular Material Table API Documentation 💻
Core Components 🧩
MatTable
📝 The primary component for rendering tabular data. 🔗 [View MatTable Overview](/angular/material/table/overview)MatColumnDef
📝 Defines a column in the table.MatHeaderCell & MatCell
📝 Header and data cells for table rows.
Properties 📦
Property | Type | Description |
---|---|---|
dataSource |
DataSource<T> |
Binds data to the table. 🛠️ |
columns |
string[] |
Specifies column names. 📝 |
displayedColumns |
string[] |
Controls which columns are shown. 📌 |
Methods ⚙️
sortData(sort: Sort)
📝 Handles data sorting logic.filterData(filterValue: string)
📝 Applies filters to the table content. 🔍
Events ⚠️
selectionChange
📝 Triggered when row selection changes.
🔗 Explore MatTable API in Depth for advanced usage.