Type

RemoveArrayItemButtonField

@ng-forge/dynamic-forms-material

Remove array item button field - dispatches RemoveAtIndexEvent or PopArrayItemEvent

Signature

type RemoveArrayItemButtonField = Omit<MatButtonField<RemoveAtIndexEvent>, 'event' | 'type' | 'eventArgs'> & {
  type: 'removeArrayItem';
  /**
   * The key of the array field to remove items from.
   * Required when the button is placed outside the array.
   * When inside an array, this is automatically determined from context.
   */
  arrayKey?: string;
};