Skip to main content

Home > blockly > Field > loadLegacyState

Field.loadLegacyState() method

Loads the given state using either the old XML hooks, if they should be used. Returns true to indicate loading has been handled, false otherwise.

Signature:

loadLegacyState(callingClass: FieldProto, state: any): boolean;

Parameters

ParameterTypeDescription
callingClassFieldProtoThe class calling this method. Used to see if this has overridden any relevant hooks.
stateanyThe state to apply to the field.

Returns:

boolean

Whether the state was applied or not.