FoldableGroup
Inherits: Resource < RefCounted < Object
Description
Section titled “Description”A group of foldable containers that doesn’t allow more than one container to be expanded at a time.
A group of FoldableContainer-derived nodes. Only one container can be expanded at a time.
Properties
Section titled “Properties”| Type | Name | Default |
|---|---|---|
| bool | allow_folding_all |
false |
| bool | resource_local_to_scene |
true (overrides Resource) |
Methods
Section titled “Methods”| Returns | Method |
|---|---|
| Array[FoldableContainer] | get_containers() const |
| FoldableContainer | get_expanded_container() const |
Signals
Section titled “Signals”expanded
expanded(container: FoldableContainer)
Emitted when one of the containers of the group is expanded.
Property descriptions
Section titled “Property descriptions”allow_folding_all
bool allow_folding_all = false
If true, it is possible to fold all containers in this FoldableGroup.
Method descriptions
Section titled “Method descriptions”get_containers
Array[FoldableContainer] get_containers() const
Returns an Array of FoldableContainers that have this as their FoldableGroup (see FoldableContainer.foldable_group). This is equivalent to ButtonGroup but for FoldableContainers.
get_expanded_container
FoldableContainer get_expanded_container() const
Returns the current expanded container.
