blob: 7b1b321026f3133e6e37a7a9e14576715a98d35b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
import { ChecklistModel } from "./Checklist";
import { isUndefined } from "util";
export class ChecklistItemModel {
public label: string;
public value: any;
public disabled: boolean;
public isChecked: boolean;
public testId: string;
public subLevelChecklist: ChecklistModel;
constructor(label: string, disabled?: boolean, isChecked?: boolean, subLevelChecklist?: ChecklistModel, testId?: string, value?: any) {
this.label = label;
this.disabled = disabled;
this.isChecked = isChecked;
this.testId = testId;
this.value = isUndefined(value) ? label : value;
this.subLevelChecklist = subLevelChecklist;
}
}
|