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'sfrom 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>): ExtensionParameters:
| Parameter | Type | Description |
|---|---|---|
| field | StateField<Value> | The initialized field. |
Returns: Extension — The extensions to enable when the field is present in a configuration.