Skip to content

StateFieldSpec.provide method

StateFieldSpec › provide

Provide extensions based on this field. The given function will be called once with the initialized field. It will usually want to call some facet's from method to create facet inputs from this field, but can also return other extensions that should be enabled when the field is present in a configuration.

Signature:

provide(field: StateField<Value>): Extension

Parameters:

ParameterTypeDescription
fieldStateField<Value>The initialized field.

Returns: ExtensionThe extensions to enable when the field is present in a configuration.