-
Notifications
You must be signed in to change notification settings - Fork 533
how to use methods from vue-form-generator button? #199
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
Good point. I will add instance of vfg to the button onclick handler as |
hi icebob,it is still can not access this.$parent or this.i put methods at like this.$parent.$parent.$parent. |
Sorry, I forgot to build :) |
it works good now.thank you icebob |
Good. You're welcome. |
Those links posted above no longer work, is there anyway to rebuild them? |
https://vue-generators.gitbook.io/vue-generators/fields/field_properties/inside_buttons Use an arrow function < () = {} > to access the local Vue methods of the component |
I went through that and I am missing something, I have one large grouped form, where would I put those buttons? I tried 3 different places and I don't see anywhere in the docs or examples where buttons are placed in a group situation. Why are buttons omitted in so much example code, seems odd for forms? |
Per the docs, and examples on that page, those buttons are attached to specific fields. You can also create input buttons, such as submit, reset, etc as additional fields using the input field. Your questions seem unrelated to this issue, if you need further assistance please try StackOverflow (for support), or open a new issue to report a bug or request features. |
anyway to fire vue methods from inside button?
Function(model, field) the model and field can not access to $parent or $root.can not access any top level data or methods for now.
thank you.
The text was updated successfully, but these errors were encountered: