Similar to matSort, this would involve creating a directive that captures selection state CdkSelection, directives for per-item toggles e.g. CdkSelectionToggle, as well as integrations specifically for CdkTable. For example, the cdk-table has cdk-text-column as a simple way to add text-only content to a table:
<table mat-table [dataSource]="dataSource">
<mat-text-column name="employeeId"></mat-text-column>
...
</table>
We can do something similar for selection.
Similar to
matSort, this would involve creating a directive that captures selection stateCdkSelection, directives for per-item toggles e.g.CdkSelectionToggle, as well as integrations specifically for CdkTable. For example, the cdk-table hascdk-text-columnas a simple way to add text-only content to a table:We can do something similar for selection.