Skip to main content

blockly > FieldVariable > setSourceBlock

FieldVariable.setSourceBlock() method

Attach this field to a block.

Signature:

setSourceBlock(block: Block): void;

Parameters

Parameter

Type

Description

block

Block

The block containing this field.

Returns:

void