Skip to content
This repository has been archived by the owner on May 2, 2024. It is now read-only.

Fix example's Reset action #57

Merged
merged 1 commit into from
Oct 25, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 10 additions & 2 deletions example/src/View/Bootstrap.elm
Original file line number Diff line number Diff line change
Expand Up @@ -45,14 +45,22 @@ textGroup : GroupBuilder String
textGroup label' state =
formGroup label'
state.liveError
[ Input.textInput state [ class "form-control" ] ]
[ Input.textInput state
[ class "form-control"
, value (Maybe.withDefault "" state.value)
]
]


textAreaGroup : GroupBuilder String
textAreaGroup label' state =
formGroup label'
state.liveError
[ Input.textArea state [ class "form-control" ] ]
[ Input.textArea state
[ class "form-control"
, value (Maybe.withDefault "" state.value)
]
]


checkboxGroup : GroupBuilder Bool
Expand Down