From d4958047db0b65ecf7f9e32e8e76266ce58d8375 Mon Sep 17 00:00:00 2001 From: Jane Date: Mon, 8 Jan 2024 11:37:35 +0300 Subject: [PATCH] Fix code snippet type in setting --- src/settings.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/settings.ts b/src/settings.ts index e38ac1b6d7..c5aa4a2dda 100644 --- a/src/settings.ts +++ b/src/settings.ts @@ -198,12 +198,12 @@ export var settings = { * import { ItemValue, settings } from "survey-core"; * * // `itemValueSerializeAsObject` example - * settings.localization.itemValueSerializeAsObject = true; + * settings.serialization.itemValueSerializeAsObject = true; * const item = new ItemValue(5); * const itemString = item.toJSON(); // Produces { value: 5 } instead of 5 * * // `itemValueSerializeDisplayText` example - * settings.localization.itemValueSerializeDisplayText = true; + * settings.serialization.itemValueSerializeDisplayText = true; * const item = new ItemValue("item1"); * const itemString = item.toJSON(); // Produces { value: "item1", text: "item1" } instead of "item1" * ```