Skip to main content

FormObserver

FormObserver#

Props#

Prop nameDescriptionTypeValuesDefault
hide-top-actionsHide top actions buttonsboolean-
hide-bottom-actionsHide bottom actions buttonsboolean-
hide-cancel-actionHide cancel button on actions panelsboolean-
hide-save-actionHide save button on actions panelsboolean-
resetReset formboolean-
loadingDisplay loading styleboolean-
titleForm titlestring-
button-optionsGlobal button options for all buttons on action panels
@see https://vuetifyjs.com/en/api/v-btn/
object-() => ({ text: true })
css-action-topCss classes for top action buttonsstring-
css-action-bottomCss classes for bottom action buttonsstring-
css-titleCss classes for bottom action buttonsstring-"text-h5 font-weight-light"

Events#

Event namePropertiesDescription
update:reset
save
cancel

Slots#

NameDescriptionBindings
top-actions-leftTop action left side
top-actionsTop action before buttons
defaultDefault slot
bottom-actions-leftBottom actions left side
bottom-actionsBottom actions before buttons

<template>
<v-form class="fill-height" @submit.prevent v-if="obModel">
<form-observer @save="save" @cancel="cancel" :loading="isLoading">
<settings v-model="obModel" />
</form-observer>
</v-form>
</template>
<script lang="ts">
import { Mixins, Component, PropSync } from "vue-property-decorator";
import CategoryMixin from "@/modules/categories/mixins/Category";
import FormObserver from "@bit/planetadeleste.gui.form.form-observer/Observer.vue";
import Settings from "@/modules/categories/components/Settings.vue";
@Component({
components: {
FormObserver,
Settings,
},
})
export default class CategoriesForm extends Mixins(CategoryMixin) {}
</script>