Using fields
like WTForm forms...
#395
hasansezertasan
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Starlette Admin has a great
fields
system, quite well.What do you think about using them like WTForm forms?
I believe it can be well implemented and can be quite helpfull when using in the
CustomView
s, actions with forms, or even in theStarlette
routes. I think WTForms widgets and Starlette Admin fields are quite similar, in a sense, except server side data validation which won't be necessary if you use them with the provided Jinja2 templates.I actually built some of my
fields
list with a class based approach, the only problem is this: you have to tell their name...I believe this declarative approach is quite good, we can add other functionalities to these so cold
forms
with extra methods.One scenario could be like this:
What do you think?
Beta Was this translation helpful? Give feedback.
All reactions