Skip to content

Commit 328a57f

Browse files
committed
Add a "deprecated" tag to API properties related to themes in the Preview tab
1 parent 33da910 commit 328a57f

File tree

2 files changed

+8
-26
lines changed

2 files changed

+8
-26
lines changed

packages/survey-creator-core/src/creator-base.ts

Lines changed: 4 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1193,16 +1193,11 @@ export class SurveyCreatorModel extends Base
11931193
public get showSimulatorInPreviewTab(): boolean { return this.showSimulatorInTestSurveyTab; }
11941194
public set showSimulatorInPreviewTab(val: boolean) { this.showSimulatorInTestSurveyTab = val; }
11951195
/**
1196-
* A [UI theme](https://surveyjs.io/Documentation/Library?id=get-started-react#configure-styles) used to display the survey in the Preview tab.
1197-
*
1198-
* Accepted values: `"default"`
1199-
*
1200-
* Default value: `"default"`
1201-
* @see previewAllowSelectTheme
1196+
* @deprecated Survey Creator no longer supports switching between UI themes in the Preview tab.
12021197
*/
12031198
public previewTheme: string = "default";
12041199
/**
1205-
* @deprecated Use the [`previewTheme`](https://surveyjs.io/survey-creator/documentation/api-reference/survey-creator#previewTheme) property instead.
1200+
* @deprecated Survey Creator no longer supports switching between UI themes in the Preview tab.
12061201
*/
12071202
public get themeForPreview() { return this.previewTheme; }
12081203
public set themeForPreview(val) { this.previewTheme = val; }
@@ -1365,16 +1360,11 @@ export class SurveyCreatorModel extends Base
13651360
public set showInvisibleElementsInPreviewTab(val: boolean) { this.showInvisibleElementsInTestSurveyTab = val; }
13661361

13671362
/**
1368-
* Specifies whether users can switch between UI themes in the Preview tab.
1369-
*
1370-
* Default value: `true`
1371-
*
1372-
* [View Demo](https://surveyjs.io/Examples/Creator?id=theme-switcher (linkStyle))
1373-
* @see previewTheme
1363+
* @deprecated Survey Creator no longer supports switching between UI themes in the Preview tab.
13741364
*/
13751365
public previewAllowSelectTheme = true;
13761366
/**
1377-
* @deprecated Use the [`previewAllowSelectTheme`](https://surveyjs.io/survey-creator/documentation/api-reference/survey-creator#previewAllowSelectTheme) property instead.
1367+
* @deprecated Survey Creator no longer supports switching between UI themes in the Preview tab.
13781368
*/
13791369
get allowChangeThemeInPreview() { return this.previewAllowSelectTheme; }
13801370
set allowChangeThemeInPreview(val) { this.previewAllowSelectTheme = val; }

packages/survey-creator-core/src/creator-options.ts

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -135,15 +135,11 @@ export interface ICreatorOptions {
135135
*/
136136
showPagesInPreviewTab?: boolean;
137137
/**
138-
* A [UI theme](https://surveyjs.io/Documentation/Library?id=get-started-react#configure-styles) used to display the survey in the Preview tab.
139-
*
140-
* Accepted values: `"default"`
141-
*
142-
* Default value: `"default"`
138+
* @deprecated Survey Creator no longer supports switching between UI themes in the Preview tab.
143139
*/
144140
previewTheme?: string;
145141
/**
146-
* @deprecated Use the [`previewTheme`](https://surveyjs.io/survey-creator/documentation/api-reference/icreatoroptions#previewTheme) property instead.
142+
* @deprecated Survey Creator no longer supports switching between UI themes in the Preview tab.
147143
*/
148144
themeForPreview?: string;
149145
/**
@@ -293,15 +289,11 @@ export interface ICreatorOptions {
293289
*/
294290
maxNestedPanels?: number;
295291
/**
296-
* Specifies whether users can switch between UI themes in the Preview tab.
297-
*
298-
* Default value: `true`
299-
*
300-
* [View Demo](https://surveyjs.io/Examples/Creator?id=theme-switcher (linkStyle))
292+
* @deprecated Survey Creator no longer supports switching between UI themes in the Preview tab.
301293
*/
302294
previewAllowSelectTheme?: boolean;
303295
/**
304-
* @deprecated Use the [`previewAllowSelectTheme`](https://surveyjs.io/survey-creator/documentation/api-reference/icreatoroptions#previewAllowSelectTheme) property instead.
296+
* @deprecated Survey Creator no longer supports switching between UI themes in the Preview tab.
305297
*/
306298
allowChangeThemeInPreview?: boolean;
307299
/**

0 commit comments

Comments
 (0)