dynamic-forms / Variable

FIELD_REGISTRY

Injection token for the global field type registry.

Provides access to the map of registered field types throughout the application. The registry is populated by the provideDynamicForm function and used by field rendering components to resolve field types to their implementations.

Presentation

const FIELD_REGISTRY: InjectionToken<Map<string, FieldTypeDefinition<any>>>;

Example usage

constructor(@Inject(FIELD_REGISTRY) private registry: Map<string, FieldTypeDefinition>) {
  const inputType = registry.get('input');
}