Skip to content

Commit

Permalink
Describe the allowZoom property
Browse files Browse the repository at this point in the history
  • Loading branch information
RomanTsukanov committed Feb 10, 2025
1 parent ea7c7f8 commit 061b43a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/survey-creator-core/src/creator-base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,11 @@ export class SurveyCreatorModel extends Base
*/
@property({ defaultValue: false }) showThemeTab: boolean;
@property({ defaultValue: true }) showCreatorThemeSettings: boolean;
/**
* Specifies whether the "Zoom In", "Zoom Out", and "Zoom to 100%" buttons are available.
*
* Default value: `true`
*/
@property({ defaultValue: true }) allowZoom: boolean;
/**
* Specifies whether to display the Translation tab.
Expand Down
5 changes: 5 additions & 0 deletions packages/survey-creator-core/src/creator-options.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,11 @@ export interface ICreatorOptions {
*/
showThemeTab?: boolean;
showCreatorThemeSettings?: boolean;
/**
* Specifies whether the "Zoom In", "Zoom Out", and "Zoom to 100%" buttons are available.
*
* Default value: `true`
*/
allowZoom?: boolean;
/**
* Specifies whether to call the [`saveSurveyFunc`](https://surveyjs.io/survey-creator/documentation/api-reference/survey-creator#saveSurveyFunc) and [`saveThemeFunc`](https://surveyjs.io/survey-creator/documentation/api-reference/survey-creator#saveThemeFunc) functions each time survey or theme settings are changed.
Expand Down

0 comments on commit 061b43a

Please sign in to comment.