Try Install Learn Blog API Packages GitHub
Pages
core

Search
Entities

Html.Event

Functions

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

Converts a native event into a Mint one.

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.

Html.Event.preventDefault(event)
doSomethingElse()
stopPropagation
(
event
:
Html.Event
)
:
Void

Stops the propagation of the given event.

Html.Event.stopPropagation(event)
doSomethingElse()