<VueFormUpdate>
Renders an update button that calls the update method on click. The button is automatically visible only in update mode (when editing an existing item) and hidden in create mode (when creating a new item).
vue
<template>
<VueForm>
<template #default="{...}">
<VueFormUpdate v-slot="{ updateItem, isUpdating, isReading, isLoading }">
<button @click="updateItem" :disabled="isUpdating">
{{ isUpdating ? "Updating..." : "Update" }}
</button>
</VueFormUpdate>
</template>
</VueForm>
</template>Slots
default
Slot Props
| Name | Description |
|---|---|
updateItem | Function Wrapper for calling update method |
isUpdating | Boolean Check the context object docs |
isReading | Boolean Check the context object docs |
isLoading | Boolean Check the context object docs |