Skip to content

Instantly share code, notes, and snippets.

@chuck0523
Created April 23, 2016 01:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chuck0523/04ab252188a36f24e9aaddbb486d2ae0 to your computer and use it in GitHub Desktop.
Save chuck0523/04ab252188a36f24e9aaddbb486d2ae0 to your computer and use it in GitHub Desktop.
getAddButton : Signal.Address Action -> String -> Html
getAddButton address addText =
if addText == ""
then
button
[ isDisbledButton ]
[ text "Add" ]
else
button
[ onClick address Add ]
[ text "Add" ]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment