Passing values from custom field input up to parent?
See original GitHub issueSorry I know this is supposed to be a bug report but I have some questions about this library because it is extremely confusing and the documentation isn’t clear.
I’ve added a custom element fieldPhone
that I reference with type phone
. Inside this custom element, I have a method onInput({ number, isValid, country })
and I want to pass the isValid
from the custom abstract field component up to VueFormGenerator so I can validate using it.
How can I do this without having to add vuex on top or add custom event buses?
Thanks.
Issue Analytics
- State:
- Created 5 years ago
- Comments:10 (3 by maintainers)
Top Results From Across the Web
How can I pass an input value to a parent component in React?
You can pass the onClick handler as a prop to the form component too. Then the form component can call onClick with all...
Read more >Pass Data From a Child FlexCard to a Parent FlexCard
To configure the data to pass to the child, click + Add New in the Input Parameters section. In Key, enter a name...
Read more >LWC Communication Part-2 (Passing data from Child to ...
We are getting the value entered by user on change event and passing the data to parent component by creating a custom event...
Read more >How to pass data from child to parent component with custom ...
You can send data from a child to a parent component by means of Vue's built-in $emit() method. The first parameter of $emit...
Read more >Sharing data between child and parent directives ... - Angular
The @Input() decorator in a child component or directive signifies that the property can receive its value from its parent component. Input data...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@adi3230 my bad yeah, the solution worked greated and i moved validation into my custom components instead which declutters a lot of my schema. thanks @zoul0813!
thanks for the solution @zoul0813 .Does it make sense to close the issue @rublev