question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Passing values from custom field input up to parent?

See original GitHub issue

Sorry 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:closed
  • Created 5 years ago
  • Comments:10 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
rublevcommented, Nov 9, 2018

@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!

1reaction
adi3230commented, Oct 30, 2018

thanks for the solution @zoul0813 .Does it make sense to close the issue @rublev

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found