AppendArrayItemEvent
| Generic types: | TTemplate |
| Implements: | |
Event dispatched to append a new item at the END of an array field.
This is the most common array operation - adding items to the end. For other positions, use {@link PrependArrayItemEvent} or {@link InsertArrayItemEvent}.
Constructor
No documentation has been provided. | |||||||||
Presentation | |||||||||
Parameters
|
Properties
| Name | Type | Description |
|---|---|---|
| type r implements | "append-array-item" |
Example usage
// Object item: append { name, email } object
eventBus.dispatch(arrayEvent ('contacts').append([
{ key: 'name', type: 'input', label: 'Name' },
{ key: 'email', type: 'input', label: 'Email' }
]));
// Primitive item: append single value
eventBus.dispatch(arrayEvent ('tags').append(
{ key: 'tag', type: 'input', label: 'Tag' }
));