-
Notifications
You must be signed in to change notification settings - Fork 6.8k
Closed
Labels
P4A relatively minor issue that is not relevant to core functionsA relatively minor issue that is not relevant to core functionsarea: material/tabledocsThis issue is related to documentationThis issue is related to documentation
Description
Bug, feature request, or proposal:
Proposal
What is the expected behavior?
It'd be nice to have example(s) on how to use md-table
with dynamic columns.
What is the current behavior?
Currently all the examples are with hard coded columns, like this:
<!-- ID Column -->
<ng-container cdkColumnDef="userId">
<md-header-cell *cdkHeaderCellDef md-sort-header> ID </md-header-cell>
<md-cell *cdkCellDef="let row"> {{row.id}} </md-cell>
</ng-container>
<!-- Progress Column -->
<ng-container cdkColumnDef="progress">
<md-header-cell *cdkHeaderCellDef md-sort-header> Progress </md-header-cell>
<md-cell *cdkCellDef="let row"> {{row.progress}}% </md-cell>
</ng-container>
irowbin, yarkeev, OpsRJ, alexrun, mrdulin and 41 moreplixxer, chrisengelsma and msqar
Metadata
Metadata
Assignees
Labels
P4A relatively minor issue that is not relevant to core functionsA relatively minor issue that is not relevant to core functionsarea: material/tabledocsThis issue is related to documentationThis issue is related to documentation