IQuestionToolboxItem
A toolbox item configuration.
IQuestionToolboxItem
objects are used in such Toolbox API methods as getItemByName(name)
, addItem(item, index)
, replaceItem(item)
, and others.
Methods
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:
- IQuestionToolboxItem
- 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:
- IQuestionToolboxItem
Removes all subitems from this toolbox item.
- Type:
- () => void
- Implemented in:
- IQuestionToolboxItem
- See also:
- removeSubitem * , addSubitem
Specifies whether users can interact with the toolbox item.
Default value: true
- Type:
- boolean readonly
- Implemented in:
- IQuestionToolboxItem
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:
- IQuestionToolboxItem
A toolbox item identifier.
Toolbox item names must be unique.
- Type:
- string readonly
- Implemented in:
- IQuestionToolboxItem
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:
- IQuestionToolboxItem
- See also:
- clearSubitems * , addSubitem
A toolbox item tooltip.
If tooltip
is undefined, the title
property value is used instead.
- Type:
- string readonly
- Implemented in:
- IQuestionToolboxItem
Copyright © 2024 Devsoft Baltic OÜ. All rights reserved.