1
0
mirror of synced 2024-11-29 16:46:09 +03:00
vue-formulario/examples/specimens/SpecimenGroup.vue
2020-04-19 14:34:25 -04:00

54 lines
1.1 KiB
Vue
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<template>
<div class="specimens specimens--group">
<FormulateForm
v-model="formResult"
@submit="save"
>
<FormulateInput
name="users"
label="Invite some new users"
type="group"
placeholder="users"
help="Fields can be grouped"
>
<FormulateInput
label="First and last name"
name="name"
type="text"
placeholder="Users name"
/>
<FormulateInput
name="email"
label="Email address"
type="email"
placeholder="Users email"
validation="required|email"
/>
</FormulateInput>
<FormulateInput
type="submit"
/>
</FormulateForm>
<span>Form Values</span>
<pre>{{ formResult }}</pre>
<span>Save Values</span>
<pre>{{ saveValues }}</pre>
</div>
</template>
<script>
export default {
data () {
return {
formResult: null,
saveValues: null
}
},
methods: {
save (values) {
this.saveValues = values
}
}
}
</script>