<mat-table>
<table mat-table ...>
I found a similar question Should I use "<table mat table ... " or "<mat-table ...", but I still have a misunderstanding. Angular Material website https://material.angular.io/components/table/overview#tables-with-code-display-flex-code- has a small note:
Note that this approach means you cannot include certain native-table >features such colspan/rowspan or have columns that resize themselves based on >their content.
But I don’t understand what:
or have columns that resize themselves based on their content means.
Could you please give an example of this, what are the columns that are resizing?
Ultimately, I want to achieve the correct display of tables on mobile devices (with the mat-table component this is easier to do, because he uses Flex), here is an example of this https://stackblitz.com/edit/angular-mohmt5?file=app%2Ftable-basic-example.ts And I want to immediately understand what difficulties may be in view of the notes above.
table
for example in html you can do<td colspan="2">
butcolspan
is not available in<mat-table>
method – penleychan