Replies: 1 comment
-
Hi! Indeed, such a view sounds like it would be very useful! As you mentioned, a React-like structure would be great here. I didn't do this initially because I didn't know of a popular reactive lib (a widespread reactive type would be ideal to integrate with other processing libs). Maybe picking one, or even implementing it here, would be sufficient, without the need for it to be widespread. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
At the moment I am manually creating many EditView fields inside of Panels.
I then write functions which populate the contents of the fields from a model struct, and functions which update fields of the model struct from the Panel's EditViews.
I feel that Cursive is missing a FormView abstraction, which would keep EditView fields and a struct in sync (with validation) or a perhaps a more React-structured cyclic binding (rather than direct bi-directional bindings).
Such an abstraction would have a
derive
macro, similar toserde
so that ViewForms could be automatically generated from annotated structs.Beta Was this translation helpful? Give feedback.
All reactions