I'm using Laravel Nova, and I want to make "Save" button(on the Update view) unavailable while all required fields are empty. Here's the part of the code of the "Update.vue" file that creates my form fields:
<div v-for="field in fields">
<component
@file-deleted="updateLastRetrievedAtTimestamp"
:is="'form-' + field.component"
:errors="validationErrors"
:resource-id="resourceId"
:resource-name="resourceName"
:field="field"
/></div>
Fields
array fills with the data from backend.
So I can see this structure in the Vue dev tool. And when I change the input value it changes value
of <form-text-field>
, but I don't see this changes anywhere in my Update
component.
So my question is - How I can get changes of my input fields dynamically?
from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/2QoqJZs
via IFTTT
Aucun commentaire:
Enregistrer un commentaire