dynamic-forms / Class

PopArrayItemEvent

Implements:FormEvent

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

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

Constructor

No documentation has been provided.

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

Properties

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

Example usage

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

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