-
Notifications
You must be signed in to change notification settings - Fork 269
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
Advanced Data Controls Guide Clarification #1345
Comments
the documentation explains the motives behind Model.
But this mechanism is already implemented in |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
``I'm having trouble figuring out how ListView should work using the ListCellFragment described by the guide in the Advanced Data Controls chapter (https://edvin.gitbooks.io/tornadofx-guide/content/part2/Advanced_Data_Controls.html)
It creates the ListView like so:
But then talks about the class
PersonListFragment
, notPersonCellFragment
Furthermore, in
PersonListFragment
, the data is bound to an intermediary of thePerson
model calledPersonModel
, which itself is explained in the chapter Editing Models and Validation (https://edvin.gitbooks.io/tornadofx-guide/content/part1/11_Editing_Models_and_Validation.html) but it does not have an empty constructor, so how is the binding shown in the example even possible?Why is this PersonModel even necessary? Can't the form elements bind to the
Person
instance itself, since the Model seems to be doing nothing but declaring new properties that are bound to thePerson
properties anyhow. What's the point of doing that?The text was updated successfully, but these errors were encountered: