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