Skip to main content

blockly > FieldVariable > toXml

FieldVariable.toXml() method

Serialize this field to XML.

Signature:

toXml(fieldElement: Element): Element;

Parameters

Parameter

Type

Description

fieldElement

Element

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

Returns:

Element

The element containing info about the field's state.