package js_of_ocaml

  1. Overview
  2. No Docs
Compiler from OCaml bytecode to Javascript

Install

dune-project
 Dependency

Authors

Maintainers

Sources

js_of_ocaml-3.5.2.tbz
sha256=8275a923385e87a33183d35fe5a8d9c1f88780b05069fa39046bb65ecd9cecb7
sha512=5e31ff9d74841241b090d7f385953a46480987bbdd2fe59934c517b3e4ba345a5a6cd590a8305ebdb4040d737f751b3e926664bfea8069a5c92a45f8c1fe8201

doc/js_of_ocaml/Js_of_ocaml/File/index.html

Module Js_of_ocaml.File

File API

class type blob = object ... end
type 'a make_blob = ?contentType:string -> ?endings:[ `Transparent | `Native ] -> 'a -> blob Js.t
val blob_from_string : string make_blob
val blob_from_any : [ `blob of blob Js.t | `arrayBuffer of Typed_array.arrayBuffer Js.t | `arrayBufferView of Typed_array.arrayBufferView Js.t | `string of string | `js_string of Js.js_string Js.t ] list make_blob
class type file = object ... end
type file_any
module CoerceTo : sig ... end
class type fileList = object ... end
class type fileError = object ... end
class type 'a progressEvent = object ... end
class type progressEventTarget = object ... end
type readyState =
  1. | EMPTY
  2. | LOADING
  3. | DONE
class type fileReader = object ... end
module ReaderEvent : sig ... end
val filename : file Js.t -> Js.js_string Js.t

filename handles old firefox without name property

val fileReader : fileReader Js.t Js.constr
val addEventListener : (progressEventTarget Js.t as 'a) -> 'b Dom.Event.typ -> ('a, 'b) Dom.event_listener -> bool Js.t -> Dom.event_listener_id

Add an event listener. This function matches the addEventListener DOM method, except that it returns an id for removing the listener.