Skip to main content

Home > blockly > Field > toXml

Field.toXml() method

Serializes this field's value to XML. Should only be called by Blockly.Xml.

Signature:

toXml(fieldElement: Element): Element;

Parameters

ParameterTypeDescription
fieldElementElementThe element to populate with info about the field's state.

Returns:

Element

The element containing info about the field's state.