Interface
BaseAddon
@ng-forge/dynamic-forms
Base shape every addon kind extends.
Public contract:
- slot chooses where the addon renders (prefix / suffix / adapter-specific).
- hidden / disabled are reactive — re-evaluated when their underlying
signals or observables emit.
- Multiple addons in the same slot render in array order, left-to-right
within the slot (LTR; mirrored in RTL).
Note: meta is intentionally absent — adapters declare addon-specific
fields via module augmentation rather than an untyped escape hatch.
Signature
interface BaseAddon<
TSlot extends AddonSlot = AddonSlot
>Type Parameters
Properties
| Name | Type | Description |
|---|---|---|
slot | TSlot | Slot to render this addon in. |
className ? | string | undefined | CSS class applied to the addon host element. |
hidden ? | DynamicValue<boolean> | undefined | Reactive visibility — when true, the addon is removed from layout. |
disabled ? | DynamicValue<boolean> | undefined | Reactive disabled state — primarily relevant for interactive kinds. |
packages/dynamic-forms/src/lib/models/addon/addon-def.ts:19