blob: cb6f540b21df20b47f11f1b0d80a2bd31ceacfc1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
export default `
<div *ngFor="let checkbox of checklistModel.checkboxes" #currentCheckbox>
<div class="checkbox-item">
<sdc-checkbox [label]="checkbox.label"
[(checked)]="checkbox.isChecked"
[disabled]="checkbox.disabled"
(checkedChange)="checkboxCheckedChange(checkbox, checklistModel)"
[ngClass]="{'semi-checked': !checkbox.isChecked && hasCheckedChild(currentCheckbox)}"></sdc-checkbox>
</div>
<div *ngIf="checkbox.subLevelChecklist" class="checkbox-sublist">
<sdc-checklist [checklistModel]="checkbox.subLevelChecklist"
(checkedChange)="childCheckboxChange($event, checkbox)"></sdc-checklist>
</div>
</div>
`;
|