Skip to content

Commit

Permalink
Update doccomments
Browse files Browse the repository at this point in the history
  • Loading branch information
RomanTsukanov committed Feb 3, 2025
1 parent 679bc9b commit 6baab2c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 36 deletions.
20 changes: 2 additions & 18 deletions packages/survey-creator-core/src/creator-base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4274,25 +4274,9 @@ export class SurveyCreatorModel extends Base
this._allowDragPages = newValue;
}
/**
* Specifies whether questions, panels, and pages on the design surface collapse when users start dragging a survey element.
* Specifies whether to collapse pages on the design surface when users start dragging a survey element.
*
* Default value: `{ questions: true, panels: true, pages: true }` (collapse all survey elements)
*
* You can disable collapsing of individual survey element types or turn off this feature completely:
*
* ```js
* const creatorOptions = {
* // Do not collapse questions
* collapseOnDrag: {
* pages: true,
* panels: true,
* questions: false
* },
* // Do not collapse any survey elements
* collapseOnDrag: false
* };
* const creator = new SurveyCreatorModel(creatorOptions);
* ```
* Default value: `true`
*/
public collapseOnDrag: boolean = true;
}
Expand Down
20 changes: 2 additions & 18 deletions packages/survey-creator-core/src/creator-options.ts
Original file line number Diff line number Diff line change
Expand Up @@ -412,25 +412,9 @@ export interface ICreatorOptions {
*/
allowDragPages?: boolean;
/**
* Specifies whether questions, panels, and pages on the design surface collapse when users start dragging a survey element.
* Specifies whether to collapse pages on the design surface when users start dragging a survey element.
*
* Default value: `{ questions: true, panels: true, pages: true }` (collapse all survey elements)
*
* You can disable collapsing of individual survey element types or turn off this feature completely:
*
* ```js
* const creatorOptions = {
* // Do not collapse questions
* collapseOnDrag: {
* pages: true,
* panels: true,
* questions: false
* },
* // Do not collapse any survey elements
* collapseOnDrag: false
* };
* const creator = new SurveyCreatorModel(creatorOptions);
* ```
* Default value: `true`
*/
collapseOnDrag?: boolean;
}

0 comments on commit 6baab2c

Please sign in to comment.