Skip to content

Instantly share code, notes, and snippets.

@chuck0523
Created April 21, 2016 23:27
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/8ce9166472bb77f5e0ceb65960da20f3 to your computer and use it in GitHub Desktop.
Save chuck0523/8ce9166472bb77f5e0ceb65960da20f3 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