<VFormDialog v-model="dialogVisible" @save="handleSave">
<v-text-field v-model="firstName" label="First name"></v-text-field>
<v-text-field v-model="lastName" label="Last name"></v-text-field>
</VFormDialog>
<v-btn @click="dialogVisible = true">Show</v-btn>
import { VFormDialog } from 'vuetify-form-dialog'
export default {
data() {
return {
firstName: '',
lastName: '',
dialogVisible
}
},
components: {
VFormDialog
},
methods: {
handleSave() {
// Handle saving here
}
}
}
-
default
-
beforeButtons
-
buttons
-
afterButtons
-
buttons-right
Boolean (optional) -
cancel-button-color
String (optional) -
cancel-button-text
String (optional)default: 'Cancel'
-
clear-button-color
String (optional) -
clear-button-text
String (optional)default: 'Clear'
-
colored-buttons
Boolean (optional) -
dark-title
Boolean (optional) -
hide-cancel-icon
Boolean (optional) -
hide-cancel-button
Boolean (optional) -
hide-clear-button
Boolean (optional) -
hide-save-button
Boolean (optional) -
save-button-color
String (optional) -
save-button-text
String (optional)default: 'Save'
-
title
String (optional) -
title-color
String (optional)default: 'primary'
-
value
Boolean (optional)default: true
formValid
initial value: false
clear
handleClear()
npm install vuetify-form-dialog
npm install
npm run serve
npm run build
npm run test
npm run lint
npm run doc:build