elm-form
elm-form copied to clipboard
Providing default values to nested records?
Hi, Is it possible to provide default values when appending nested records?
In my case, I want to allow the user to add/remove a nested record represented by a selectInput. But when I append a new record it doesn't have a default value so that a selectInput like this:
selectInput [ ("Foo", "Foo"), ("Bar", "Bar") ]
ends up looking "empty" (i.e, neither "Foo" nor "Bar" is selected). Is there any way I can tell the new records to e.g default to "Foo"?