dynamic-forms / Class

ShiftArrayItemEvent

Implements:FormEvent

Event dispatched to remove the FIRST item from an array field.

Equivalent to JavaScript's Array.shift() - removes from the beginning. For removing from the end, use {@link PopArrayItemEvent}. For removing at a specific index, use {@link RemoveAtIndexEvent}.

Constructor

No documentation has been provided.

Presentation
constructor(
	readonly arrayKey: string
): ShiftArrayItemEvent;
Parameters
NameTypeDescription
r
arrayKey
string

Properties

NameTypeDescription
type
r
implements FormEvent
"shift-array-item"

Example usage

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

// Or instantiate directly
eventBus.dispatch(new ShiftArrayItemEvent('contacts'));