-
Notifications
You must be signed in to change notification settings - Fork 533
Impossible to submit form ? #22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hi, the reason why there is no submit button, that I'm using this component in my webapps. Where there is no submit, only Save (a json model). But your request is good, I think, I will add it. 👍 |
Hi, Thanks for your quick answer ! How can i get the list of the errors of the form in real time ? Example: I want to add a disabled class to my submit button, and remove it if there is no more errors. I already created a prop in my model, and a v-bind:class="{'disabled': !isValid}". But how to populate the status of "isValid" prop ? |
Hi, please check this part of example code: https://github.com/icebob/vue-form-generator/blob/master/dev/app.vue#L77 I make a |
Thanks again for your support and your advises, i finally ended with a custom method and a v-bind attribute like so : And in this method i finnally check directly my models : But i cant use the With my method, unfortunatelly i only check if the field is empty or not, and not really the result of your validator. Maybe adding an option like What is your opinion on this ? |
To get back to the original question, maybe a simple slot named "submit" could be enough ? |
No, I will create a fieldSubmit component and it can be add to form via schema. |
@Masterchoc I will add a |
Implemented in #26 |
Hi,
i found your very usefull library, but unfortunatelly i cant found a way to implement a simple submit button, or prevent the default event.
I use for now a form tag which is wrapping the vue-form-generator component, and inside i create manually a submit button.
But i think it would be cool if we can add a new type "submit" in the schema, but maybe there is reasons if this not exists...
Thanks, and sorry for the mystakes.
The text was updated successfully, but these errors were encountered: