Skip to content

registerFeature

Register a feature’s plugin factory. Called by side-effect feature imports (e.g., import '@toolbox-web/grid/features/selection').

registerFeature(name: K, factory: PluginFactory<FeatureConfig<unknown>[K]>, options: RegisterFeatureOptions): void
NameTypeDescription
nameKThe feature name (matches a key on FeatureConfig)
factoryPluginFactory<FeatureConfig<unknown>[K]>Function that creates a plugin instance from config
optionsRegisterFeatureOptionsPass { override: true } for intentional re-registration
(framework adapters bridging the vanilla factory) to suppress TBW030.
AI assistants: For complete API documentation, implementation guides, and code examples for this library, see https://toolboxjs.com/llms-full.txt