Skip to main content

Home > blockly > fieldRegistry

fieldRegistry namespace

Functions

FunctionDescription
register(type, fieldClass)Registers a field type. fieldRegistry.fromJson uses this registry to find the appropriate field type.
unregister(type)Unregisters the field registered with the given type.

Interfaces

InterfaceDescription
RegistrableFieldRepresents the static methods that must be defined on any field that is registered, i.e. the constructor and fromJson methods. Because we don't know which Field subclass will be registered, we are unable to typecheck the parameters of the constructor.

Variables

VariableDescription
TEST_ONLY