IrisJS

Namespace: blocks

blocks

Members

(static) blocks

Blocks store. Keeps a record of all block instances; this is also stored in config files.

Source:

(static) blockTypes

Block types store. Keeps a record of all available block types; this is also stored in config files.

Source:

(static) hook_block_render

Block render hook

Expects to have thisHook.const contain an id, type and config pertaining to the block that is being rendered.

May be hooked into to change the display of blocks.

Source:

Methods

(static) registerBlock(config)

Register a block in code

Parameters:
Name Type Description
config object

The block configuration object to save

Source:

(static) registerBlockType(name)

Register a new block type

Parameters:
Name Type Description
name string

The name of the block type

Source: