Class
RemoveAtIndexEvent
@ng-forge/dynamic-forms
Event dispatched to remove an item at a SPECIFIC INDEX from an array field.
Use this when you need precise control over which item to remove. For simpler operations, use {@link PopArrayItemEvent} or {@link ShiftArrayItemEvent}.
Signature
class RemoveAtIndexEvent
implements FormEventProperties
| Name | Type | Description |
|---|---|---|
type | "remove-at-index" | - |
Examples
// Use the builder API (recommended)
eventBus.dispatch(arrayEvent('contacts').removeAt(2));
// Or instantiate directly
eventBus.dispatch(new RemoveAtIndexEvent('contacts', 2));packages/dynamic-forms/src/lib/events/constants/remove-at-index.event.ts:18