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

Parameter Type Description
callingClass FieldProto The class calling this method. Used to see if this has overridden any relevant hooks.
state any The state to apply to the field.

Returns:

boolean

Whether the state was applied or not.