When working with material tables, it's important to note that you cannot utilize the colspan
attribute. Instead, consider using the [matColumnDef]
to specify which columns should be displayed. Another option is to explore the use of [attr.colspan]
as an attribute for mat-table, although personal testing is recommended.
Take control of column definition within a mat-table by defining a specific set of cells for each table column.
For more information on Angular Material Table API, click here.
If you are determined to implement colspan in your project, refer to THIS thread for guidance on utilizing colspan with CdkTable
.