Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Angular Tables mat-table and cdk-table

What is the difference in angular's mat-table and cdk-table and in mat-table can we render rows of table after it has been created once.

like image 515
Akhil Shrivastava Avatar asked Nov 23 '25 13:11

Akhil Shrivastava


2 Answers

As you can read from Angular Material's doc, mat-table 'extends' the CDKTable.
They has the same API, but with mat-table you have the standard of Material Design

like image 107
Shifenis Avatar answered Nov 26 '25 03:11

Shifenis


From the Angular Material documentation.

The mat-table provides a Material Design styled data-table that can be used to display rows of data.

This table builds on the foundation of the CDK data-table and uses a similar interface for its data input and template, except that its element and attribute selectors will be prefixed with mat- instead of cdk-.

https://material.angular.io/components/table/overview

like image 37
Christoff Erasmus Avatar answered Nov 26 '25 02:11

Christoff Erasmus



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!