You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/survey-core/src/base.ts
+7-4Lines changed: 7 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -417,18 +417,21 @@ export class Base {
417
417
}
418
418
419
419
/**
420
-
* Returns a JSON object that corresponds to the current SurveyJS object.
420
+
* Returns a JSON schema that corresponds to the current survey element.
421
+
* @param options An object with configuration options.
422
+
* @param {boolean} options.storeDefaults Pass `true` the JSON schema should include properties with default values.
423
+
* @returns A JSON schema of the survey element.
421
424
* @see fromJSON
422
425
*/
423
426
publictoJSON(options?: ISaveToJSONOptions): any{
424
427
returnnewJsonObject().toJsonObject(this,options);
425
428
}
426
429
/**
427
-
* Assigns a new configuration to the current SurveyJS object. This configuration is taken from a passed JSON object.
430
+
* Assigns a new JSON schema to the current survey element.
428
431
*
429
-
* The JSON object should contain only serializable properties of this SurveyJS object. Event handlers and properties that do not belong to the SurveyJS object are ignored.
432
+
* The JSON schema should contain only serializable properties of this survey element. Event handlers and properties that do not belong to the survey element are ignored.
430
433
*
431
-
* @param json A JSON object with properties that you want to apply to the current SurveyJS object.
434
+
* @param json A JSON schema that you want to apply to the current survey element.
432
435
* @param options An object with configuration options.
433
436
* @param {boolean} options.validatePropertyValues Pass `true` if you want to validate property values. Use the [`jsonErrors`](#jsonErrors) array to access validation errors.
0 commit comments