1 <cd-table [data]="data"
13 <ng-template #cellScopeCheckboxTpl
14 let-column="data.column"
16 let-value="data.value">
17 <div class="custom-control custom-checkbox">
18 <input class="custom-control-input"
19 id="scope_{{ row.scope }}"
21 [checked]="isRowChecked(row.scope)"
22 [disabled]="isDisabled"
23 (change)="onClickCellCheckbox(row.scope, column.prop, $event)">
24 <label class="datatable-permissions-scope-cell-label custom-control-label"
25 for="scope_{{ row.scope }}">{{ value }}</label>
29 <ng-template #cellPermissionCheckboxTpl
30 let-column="data.column"
32 let-value="data.value">
33 <div class="custom-control custom-checkbox">
34 <input class="custom-control-input"
37 [disabled]="isDisabled"
38 [id]="row.scope + '-' + column.prop"
39 (change)="onClickCellCheckbox(row.scope, column.prop, $event)">
40 <label class="custom-control-label"
41 [for]="row.scope + '-' + column.prop"></label>
45 <ng-template #headerPermissionCheckboxTpl
47 <div class="custom-control custom-checkbox">
48 <input class="custom-control-input"
49 id="header_{{ column.prop }}"
51 [disabled]="isDisabled"
52 [checked]="isHeaderChecked(column.prop)"
53 (change)="onClickHeaderCheckbox(column.prop, $event)">
54 <label class="datatable-permissions-header-cell-label custom-control-label"
55 for="header_{{ column.prop }}">{{ column.name }}</label>