Skip to main content

createInstance

Creates an instance of a component in Buzz, optionally positioned at specific canvas coordinates.

Signature​

createInstance(component: ComponentNode, rowIndex: number, columnIndex?: number): InstanceNode

Parameters​

component​

The ComponentNode to create an instance from

rowIndex​

The row position on the canvas grid (optional)

columnIndex​

The column position on the canvas grid (optional)

Remarks​

If no rowIndex and columnIndex are specified, the new instance will be created at the end of the canvas grid.