Class: ContainerBlock

ContainerBlock(options)

A ContainerBlock is a container for other blocks (including other ContainerBlocks).

Constructor

new ContainerBlock(options)

Create a container block.
Parameters:
Name Type Description
options Object Configuration options.
Author:
  • Lawrence Fyfe
Source:

Methods

addBlock(block)

Add the specified block to this block.
Parameters:
Name Type Description
block block The block to add.
Source:

draw()

Draw this block.
Source:

erase()

Erase this block.
Source:

initialize(parentElement)

Initialize this block by attaching it to the specified parent element.
Parameters:
Name Type Description
parentElement element The parent element.
Source: