Skip to main content

blockly > Field > fromXml

Field.fromXml() method

Sets the field's value based on the given XML element. Should only be called by Blockly.Xml.

Signature:

fromXml(fieldElement: Element): void;

Parameters

Parameter

Type

Description

fieldElement

Element

The element containing info about the field's state.

Returns:

void