Skip to content

Commit

Permalink
updated survey-creator docs [azurepipelines skip]
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitry-kurmanov committed Jul 23, 2024
1 parent f4f3112 commit c634d54
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion docs/theme-editor.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,11 +100,14 @@ function saveThemeJson(url, json, saveNo, callback) {

To load a theme JSON object into Theme Editor, assign the object to Survey Creator's [`theme`](https://surveyjs.io/survey-creator/documentation/api-reference/survey-creator#theme) property. The following code takes a theme JSON object from `localStorage`:


```js
creator.theme = window.localStorage.getItem("survey-theme-json");
```

You can also add UI elements that allow users to save, apply, and reuse custom themes. To implement this advanced functionality, refer to the following demo:

[View "Add Reusable Themes" Demo](https://surveyjs.io/survey-creator/examples/save-custom-theme/ (linkStyle))

## See Also

- [Themes & Styles](/form-library/documentation/manage-default-themes-and-styles)
Expand Down

0 comments on commit c634d54

Please sign in to comment.