You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 to serde so that ViewForms could be automatically generated from annotated structs.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
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