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

Extracting Data from a Form #18

Closed
joerg-rade opened this issue Mar 18, 2019 · 2 comments
Closed

Extracting Data from a Form #18

joerg-rade opened this issue Mar 18, 2019 · 2 comments

Comments

@joerg-rade
Copy link
Contributor

joerg-rade commented Mar 18, 2019

Hi Robert,
first of all: thanks for providing kvision!

I have an issue with extracting data (user input) from a form. In the examples you assume a fixed model class that allows to extract user input via getData().

I hava a use case where I would like to be able to create forms dynamically, ie. there is no static model class.
I would like to access Form.fields but FormPanel.form is protected.

How should I address this? Roll my own FormPanel and make form accessible?

Thanks in advance
Jörg

@rjaros
Copy link
Owner

rjaros commented Mar 18, 2019

Since KVision 0.0.30 (released yesterday) form is no longer protected field in FormPanel. I had to make it public to be able to extract some methods to the external module. So you should be able to access fields without problems now.

@joerg-rade
Copy link
Contributor Author

Thanks! I'll upgrade

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants