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 FormEvent

Properties

NameTypeDescription
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));