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
Currently, users must choose between uniforms-<style> packages.
As implemented, most of the logical components simply calls parent classes. The only differences are really in the display/field components.
If you were to move all the display components into a big map of their names, then that object could be passed into each type of Form instance. This would allow users to
implement form themes with their own component libraries
use a different theme for different forms a little more easily
No. 1 is the most important for me personally. I would have to copy and maintain a whole separate package with a lot of boilerplate to implement the forms I want to.
But with this change, I would implement the <Type>Field components from the autofield algorithm, pass those in an object like:
Hi @alexkreidler. First of all, a static component map would not work, as most apps require custom field components for the same types, e.g. NestField can render an address form correctly, but a custom AddressField may have a different layout. Anyway, this and a few other arguments, as well as the approach I'm working on, are in #640.
Currently, users must choose between
uniforms-<style>
packages.As implemented, most of the logical components simply calls parent classes. The only differences are really in the display/field components.
If you were to move all the display components into a big map of their names, then that object could be passed into each type of
Form
instance. This would allow users toNo. 1 is the most important for me personally. I would have to copy and maintain a whole separate package with a lot of boilerplate to implement the forms I want to.
But with this change, I would implement the
<Type>Field
components from the autofield algorithm, pass those in an object like:then I could use autoform like
And users could simply import the appropriate already-implemented ones like
This would definitely be a breaking change and you'd have to change the default export of those different theme packages, but it might be worthwhile.
Let me know what you think!
The text was updated successfully, but these errors were encountered: