Skip to content

Instantly share code, notes, and snippets.

@amitaibu
Last active March 30, 2016 20:13
Show Gist options
  • Save amitaibu/bb978869e96f9b34bc7faab93df5eca5 to your computer and use it in GitHub Desktop.
Save amitaibu/bb978869e96f9b34bc7faab93df5eca5 to your computer and use it in GitHub Desktop.
initialFields : List ( String, Field.Field )
initialFields =
[ ( "name", Field.Text "hey" )
, ( "profile"
, Field.group
[ ( "foo", Field.Radio "ho" ) ]
)
]
--- VS
type ViewModeFull
= Name Field
| Profile Field
| Profile__Age Field
| Profile__SuperPower Field
Form.getFieldAsString (Profile__SuperPower formModel.name) form
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment