Skip to main content

Home > 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

ParameterTypeDescription
fieldElementElementThe element containing info about the field's state.

Returns:

void