package js_of_ocaml
Compiler from OCaml bytecode to JavaScript
Install
Dune Dependency
Authors
Maintainers
Sources
js_of_ocaml-3.11.0.tbz
sha256=158dafe7271ac79157981d1c3f5f177ec78a0099c38f861ae14e7ac06bd29c3a
sha512=d83f0988aa1089fa01a0a693d7e6a832018c5a8ce707f44685809769377ef7ef59ce48229b1612966bd9166b610d66ddff8f2606f6c3f09c49f601b74842fde1
doc/js_of_ocaml/Js_of_ocaml/File/index.html
Module Js_of_ocaml.File
File API
class type blob = object ... end
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
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
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.
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>