diffusionkinetics / open

DiffusionKinetics open-source monorepo
MIT License
115 stars 24 forks source link

Youido forms: sum types #92

Closed glutamate closed 6 years ago

glutamate commented 6 years ago

If a form contains a sum type as a field, then we should expect the following behaviour, possibly triggered by wrapping in a newtype:

There should be a drop down select with an option for every constructor. If the constructor takes arguments, this should be treated as a sub form that appears only if that constructor has been selected in the drop down.

You may assume that jQuery has been loaded and you should use hide/show to trigger the visibility of various sub forms