Skip to content

Commit

Permalink
Docs: Add links to the Manage Toolbox Subitems help topic (#5803)
Browse files Browse the repository at this point in the history
  • Loading branch information
RomanTsukanov authored Aug 27, 2024
1 parent 4630071 commit 80866c7
Showing 1 changed file with 8 additions and 0 deletions.
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

0 comments on commit 80866c7

Please sign in to comment.