Skip to content

Instantly share code, notes, and snippets.

@foxdonut
Created March 18, 2016 15:29
Show Gist options
  • Save foxdonut/b71c0f488c953252bedf to your computer and use it in GitHub Desktop.
Save foxdonut/b71c0f488c953252bedf to your computer and use it in GitHub Desktop.
[ button
[ class "btn btn-primary btn-xs"
, onWithOptions
"click"
{ preventDefault = True, stopPropagation = False }
targetValue
(always (Signal.message address (Save model.todo)))
]
[ text "Save" ]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment