Try Install Learn Blog API Packages GitHub
Pages
Standard Library

Search
Entities

Html.Event

Functions

fromEvent
(
event
:
Html.NativeEvent
)
:
Html.Event
isPropagationStopped
(
event
:
Html.Event
)
:
Bool

Returns whether or not the events propagation is stopped or not.

Html.Event.isPropagationStopped(event)
preventDefault
(
event
:
Html.Event
)
:
Void

Prevents the default action of the event from happening.

try {
  Html.Event.preventDefault(event)
  doSomethingElse()
}
stopPropagation
(
event
:
Html.Event
)
:
Void

Stops the propagation of the given event.

try {
  Html.Event.stopPropagation(event)
  doSomethingElse()
}