Module

Web.Chain.Event

Package
purescript-web-chain
Repository
david-sledge/purescript-web-chain

Chain functions related to events.

#change Source

change :: forall t m. EventTargetOp t => MonadEffect m => t -> m t

Triggers the change event handlers tied to the event target. The target is returned.

#changeM Source

changeM :: forall m t. Bind m => EventTargetOp t => MonadEffect m => m t -> m t

Triggers the change event handlers tied to the event target. The target is returned.

#onChange Source

onChange :: forall a m t. MonadEffect m => EventTargetOp t => (Event -> Effect a) -> t -> m t

Attach an event handler function to the event target when the target's value changes. The target is returned.

#onChangeM Source

onChangeM :: forall a m t. MonadEffect m => EventTargetOp t => (Event -> Effect a) -> m t -> m t

Attach an event handler function to the event target when the target's value changes. The target is returned.

#onReady Source

onReady :: forall a m. MonadEffect m => (Event -> Effect a) -> m HTMLDocument

Attach an event handler function to the HTML document when the DOM is fully loaded. The document is returned.

#onReady_ Source

onReady_ :: forall a m. MonadEffect m => (Event -> Effect a) -> m Unit

Attach an event handler function to the HTML document when the DOM is fully loaded.