"setCollapsible"
Allows to define if a module can be collapsed.
Synopsis
shape.setCollapsible(string moduleName, bool on);
Parameter
Parameter | Description |
---|---|
shape | Object name |
moduleName | Name of the module |
on | Setting if the module can be collapsed |
Description
The function allows to define if the corresponding module can be collapsed. By default all modules are collapsible.
A collapsible module can be reduced by the user to a size of 0. Even if a minimum size is defined for the module it can be reduced to a size of 0 if it is set as collapsible.
The settings can either be separately done for each module or globally set for all modules by using the property "childrenCollapsible".
Example
Defines if the module "myModule" can be collapsed.
main()
{
this.setCollapsible("myModule",1);
}
Assignment
Splitter