Type

ShiftArrayItemButtonField

@ng-forge/dynamic-forms-material

Shift array item button field - dispatches ShiftArrayItemEvent (removes first item)

Signature

type ShiftArrayItemButtonField = Omit<MatButtonField<ShiftArrayItemEvent>, 'event' | 'type' | 'eventArgs'> & {
  type: 'shiftArrayItem';
  /**
   * The key of the array field to remove the first item from.
   * REQUIRED - must specify which array to shift from.
   */
  arrayKey: string;
};