QuestionToolboxItem
A toolbox item instance.
An object of this class is returned by the QuestionToolbox
's getItemByName(name)
method.
Events
Adds a subitem to this toolbox item.
- Type:
- (subitem: IQuestionToolboxItem, index?: number) => void
- Parameters:
-
subitem, type: IQuestionToolboxItem ,
An
IQuestionToolboxItem
object that represents a subitem configuration.index, type: number ,(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.
- Implemented in:
- QuestionToolboxItem
- See also:
- removeSubitem * , clearSubitems
A category to which this toolbox item belongs.
Out-of-the-box categories include "general"
, "choice"
, "text"
, "containers"
, "matrix"
, and "misc"
.
Default value: "general"
- Type:
- string readonly
- Implemented in:
- QuestionToolboxItem
Removes all subitems from this toolbox item.
- Type:
- () => void
- Implemented in:
- QuestionToolboxItem
- See also:
- removeSubitem * , addSubitem
Specifies whether users can interact with the toolbox item.
Default value: true
- Type:
- boolean writable
- Implemented in:
- QuestionToolboxItem
Finds a subitem with a specified name in the collection of subitems belonging to this toolbox item.
- Type:
- (name: string) => QuestionToolboxItem
- Parameters:
- Return Value:
-
A
QuestionToolboxItem
object that represents the subitem instance.
- Implemented in:
- QuestionToolboxItem
A JSON object used to create a new question or panel when users click this toolbox item. It must contain the type
property.
View Toolbox Customization Demo
- Type:
- any readonly
- Implemented in:
- QuestionToolboxItem
A toolbox item identifier.
Toolbox item names must be unique.
- Type:
- string readonly
- Implemented in:
- QuestionToolboxItem
Removes a specific subitem from this toolbox item.
- Type:
- (subitem: string | IQuestionToolboxItem) => void
- Parameters:
-
subitem, type: string | IQuestionToolboxItem ,
A subitem
name
or anIQuestionToolboxItem
object that represents a subitem configuration.
- Implemented in:
- QuestionToolboxItem
- See also:
- clearSubitems * , addSubitem
A toolbox item tooltip.
If tooltip
is undefined, the title
property value is used instead.
- Type:
- string readonly
- Implemented in:
- QuestionToolboxItem
Copyright © 2024 Devsoft Baltic OÜ. All rights reserved.