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

NameConstraintDefaultDescription
TSlotAddonSlotAddonSlot-

Properties

NameTypeDescription
slot TSlotSlot to render this addon in.
className ?string | undefinedCSS class applied to the addon host element.
hidden ?DynamicValue<boolean> | undefinedReactive visibility — when true, the addon is removed from layout.
disabled ?DynamicValue<boolean> | undefinedReactive disabled state — primarily relevant for interactive kinds.