I have a piece of code that use Vue-Formulate with group feature and I try to implement custom button to remove nested items;
<FormulateInput 
  type="group"
  :name="field.name"
  v-bind="field.attributes"
  remove-position="after"
>
  <div ....>
    <div .... v-for loop>
      <FormulateInput 
        :type="_field.type"
        :name="_field.name"
        ....
      />
    </div>
  </div>
  <div slot="remove"> <!-- adding slot to customize remove -->
    <FormulateInput
      type="button"
    >
      Remove Student
    </FormulateInput>
  </div>
</FormulateInput>
Such addiction change default <a ...> link to button but functionality of removing item being lost.
Documentation of this slot says:
"The remove button when repeatable. The context object in this slot includes the index and a removeItem function that should be called to remove that item."
I am not sure how to add removeItem function call to it.
                        
The
removeItemslot prop is only provided to repeatable groups, so make sure to setrepeatableon theFormulateInputwithtype=group.To insert a custom remove-button in the
removescoped slot, wrap the button in a<template v-slot:remove="{ removeItem }">, and setremoveItemas the button'sclick-handler via thev-ondirective (@clickfor shorthand):demo