dynamic-forms / Class

RemoveAtIndexEvent

Implements:FormEvent

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}.

Constructor

No documentation has been provided.

Presentation
constructor(
	readonly arrayKey: string, 
	readonly index: number
): RemoveAtIndexEvent;
Parameters
NameTypeDescription
r
arrayKey
string
r
index
number

Properties

NameTypeDescription
type
r
implements FormEvent
"remove-at-index"

Example usage

// Use the builder API (recommended)
eventBus.dispatch(arrayEvent('contacts').removeAt(2));

// Or instantiate directly
eventBus.dispatch(new RemoveAtIndexEvent('contacts', 2));