Form
Form
PForm wraps a native <form> and emits validity status. It pairs with PButton when using validateForm.
Demo
Usage
<PForm @valid="isValid = $event"> <PText v-model="name" required>Name</PText> <PButton :validate-form="true">Submit</PButton></PForm>Events
| Event | Payload | Description |
|---|---|---|
valid | Boolean | Emits the current validity state. |
Methods
| Method | Description |
|---|---|
isFormvalid() | Checks validity and emits valid. |
reportValidity() | Calls native reportValidity(). |
checkValidity() | Calls native checkValidity(). |