package fmlib_js

  1. Overview
  2. Docs
Library for easy compilation from ocaml to javascript

Install

Dune Dependency

Authors

Maintainers

Sources

0.4.0.tar.gz
sha256=b54320cbe9bddac9ff88654e1d8ffea1d2eecb48aa668f3483f26f80c7954531
md5=28a93cbd62d5debe496759e8e954848b

doc/fmlib_js/Fmlib_js/Event_target/index.html

Module Fmlib_js.Event_target

Event_targets in the browser

type t

Type of an event target.

val add : string -> (Event.t -> unit) -> t -> unit

add type handler target

Add for the event type type the listener handler to the event target tgt (javascript method addEventListener).

val remove : string -> (Event.t -> unit) -> t -> unit

remove type handler target

Remove for the event type type the listener handler off the event target tgt (javascript method removeEventListener).

Note: The same handler might be added for several event types. The function remove only removes the handler for the specific event type.

OCaml

Innovation. Community. Security.