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 [disabled]="isDisabled"
21 (change)="onClickCellCheckbox(row.scope, column.prop, $event)">
22 <label class="datatable-permissions-scope-cell-label custom-control-label"
23 for="scope_{{ row.scope }}">{{ value }}</label>
27 <ng-template #cellPermissionCheckboxTpl
31 <div class="custom-control custom-checkbox">
32 <input class="custom-control-input"
35 [disabled]="isDisabled"
36 [id]="row.scope + '-' + column.prop"
37 (change)="onClickCellCheckbox(row.scope, column.prop, $event)">
38 <label class="custom-control-label"
39 [for]="row.scope + '-' + column.prop"></label>
43 <ng-template #headerPermissionCheckboxTpl
45 <div class="custom-control custom-checkbox">
46 <input class="custom-control-input"
47 id="header_{{ column.prop }}"
49 [disabled]="isDisabled"
50 [checked]="isHeaderChecked(column.prop)"
51 (change)="onClickHeaderCheckbox(column.prop, $event)">
52 <label class="datatable-permissions-header-cell-label custom-control-label"
53 for="header_{{ column.prop }}">{{ column.name }}</label>