1 <cd-table [data]="data"
11 <ng-template #cellScopeCheckboxTpl
15 <div class="custom-control custom-checkbox">
16 <input class="custom-control-input"
17 id="scope_{{ row.scope }}"
19 [checked]="isRowChecked(row.scope)"
20 (change)="onClickCellCheckbox(row.scope, column.prop, $event)">
21 <label class="datatable-permissions-scope-cell-label custom-control-label"
22 for="scope_{{ row.scope }}">{{ value }}</label>
26 <ng-template #cellPermissionCheckboxTpl
30 <div class="custom-control custom-checkbox">
31 <input class="custom-control-input"
34 [id]="row.scope + '-' + column.prop"
35 (change)="onClickCellCheckbox(row.scope, column.prop, $event)">
36 <label class="custom-control-label"
37 [for]="row.scope + '-' + column.prop"></label>
41 <ng-template #headerPermissionCheckboxTpl
43 <div class="custom-control custom-checkbox">
44 <input class="custom-control-input"
45 id="header_{{ column.prop }}"
47 [checked]="isHeaderChecked(column.prop)"
48 (change)="onClickHeaderCheckbox(column.prop, $event)">
49 <label class="datatable-permissions-header-cell-label custom-control-label"
50 for="header_{{ column.prop }}">{{ column.name }}</label>