"addModule"
Adds a new module.
Synopsis
shape.addModule(string moduleName, int idx = -1);
Parameters
Parameter | Description |
---|---|
shape | Object name |
moduleName | Name of the module |
idx | Index position to which the module should be added |
Description
The function adds a new module inside of the splitter object at the stated index position. If the stated index value is invalid (too high or negative) the module is placed at the last position within the splitter object.
Example
Adds the new module "myModule" to the index position 1 of the splitter object.
main()
{
this.addModule("myModule", 1);
}
Assignment
Splitter