Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docs: Add links to the Manage Toolbox Subitems help topic #5803

Merged
merged 2 commits into from
Aug 27, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions packages/survey-creator-core/src/toolbox.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,12 +82,16 @@ export interface IQuestionToolboxItem extends IAction {
getArea?: (el: HTMLElement) => HTMLElement;
/**
* Removes all subitems from this toolbox item.
*
* [Manage Toolbox Subitems](https://surveyjs.io/survey-creator/documentation/toolbox-customization#manage-toolbox-subitems (linkStyle))
* @see removeSubitem
* @see addSubitem
*/
clearSubitems?(): void;
/**
* Adds a subitem to this toolbox item.
*
* [Manage Toolbox Subitems](https://surveyjs.io/survey-creator/documentation/toolbox-customization#manage-toolbox-subitems (linkStyle))
* @param subitem An `IQuestionToolboxItem` object that represents a subitem configuration.
* @param index *(Optional)* A zero-based index at which to insert the subitem. If you do not specify this parameter, the subitem is added to the end.
* @see removeSubitem
Expand All @@ -96,6 +100,8 @@ export interface IQuestionToolboxItem extends IAction {
addSubitem?(subitem: IQuestionToolboxItem, index: number): void;
/**
* Removes a specific subitem from this toolbox item.
*
* [Manage Toolbox Subitems](https://surveyjs.io/survey-creator/documentation/toolbox-customization#manage-toolbox-subitems (linkStyle))
* @param subitem A subitem [`name`](https://surveyjs.io/survey-creator/documentation/api-reference/iquestiontoolboxitem#name) or an `IQuestionToolboxItem` object that represents a subitem configuration.
* @see clearSubitems
* @see addSubitem
Expand Down Expand Up @@ -424,6 +430,8 @@ export class QuestionToolbox
* Specifies whether toolbox items support subitems.
*
* Default value: `true`
*
* [Manage Toolbox Subitems](https://surveyjs.io/survey-creator/documentation/toolbox-customization#manage-toolbox-subitems (linkStyle))
*/
@property({ defaultValue: true }) showSubitems: boolean;

Expand Down
Loading