Skip to content

Commit

Permalink
Fix code snippet type in setting
Browse files Browse the repository at this point in the history
  • Loading branch information
JaneSjs committed Jan 8, 2024
1 parent 54c95c7 commit d495804
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/settings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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"
* ```
Expand Down

0 comments on commit d495804

Please sign in to comment.