Skip to content
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

Transfer input value from the outside #8

Closed
artkravchenko opened this issue May 5, 2016 · 3 comments

Comments

@artkravchenko
Copy link
Contributor

@artkravchenko artkravchenko commented May 5, 2016

Hello,
It looks like there's no opportunity to set the fields' value anywhere expect direct keyboard input events.
Is it possible to add support of transferring value to the fields from the outside (for example, by API like setValue()?

@theadam

This comment has been minimized.

Copy link
Owner

@theadam theadam commented May 5, 2016

Depends on where this is happening, but within the form component gets passed a form property that has an onValues() function. You could use that to set all of the values. I will try to mock up an example as soon as possible.

@artkravchenko

This comment has been minimized.

Copy link
Contributor Author

@artkravchenko artkravchenko commented May 5, 2016

@theadam Thank you for the response.
I missed form.onValues() in the documentation. This method actually does exactly what we need.

@theadam

This comment has been minimized.

Copy link
Owner

@theadam theadam commented May 5, 2016

Great! Closing!

@theadam theadam closed this May 5, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.