Skip to content

Commit 54c4d85

Browse files
committed
Add a description for the notificationType property
1 parent c3af2b3 commit 54c4d85

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

packages/survey-core/src/validator.ts

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,19 @@ export class SurveyValidator extends Base {
6262
? (<any>this.errorOwner).getSurvey()
6363
: null;
6464
}
65+
/**
66+
* Specifies the type of notification shown to users.
67+
*
68+
* Possible values:
69+
*
70+
* - `"error"`
71+
* - `"warning"`
72+
* - `"info"`
73+
*
74+
* Errors block survey progress until resolved. Warnings indicate potential issues but don't block respondents from continuing the survey. Informational notes provide guidance without restrictions.
75+
*
76+
* > If multiple notification types are eligible to be displayed for a question, only the strongest type is shown. Warnings appear only after all errors are resolved, and notes appear only when there are no errors or warnings.
77+
*/
6578
public get notificationType(): string { return this.getPropertyValue("notificationType"); }
6679
public set notificationType(val: string) { this.setPropertyValue("notificationType", val); }
6780
/**

0 commit comments

Comments
 (0)