Module

Specular.Dom.Widgets.Button

Package
purescript-specular
Repository
restaumatic/purescript-specular

#buttonOnClick Source

buttonOnClick :: forall m. MonadWidget m => WeakDynamic Attrs -> m Unit -> m (Event Unit)

buttonOnClick attrs body - Creates a HTML <button> element with the specified dynamic attributes and body.

Returns an Event that occurs when the button is clicked.