package js_of_ocaml-lwt

  1. Overview
  2. Docs

Module Js_of_ocaml_lwt.FileSource

include module type of struct include Js_of_ocaml.File end
Sourceclass type blob = object ... end
Sourcetype 'a make_blob = ?contentType:string -> ?endings:[ `Transparent | `Native ] -> 'a -> blob Js_of_ocaml.Js.t
Sourceval blob_from_string : string make_blob
Sourceval blob_from_any : [ `blob of blob Js_of_ocaml.Js.t | `arrayBuffer of Js_of_ocaml.Typed_array.arrayBuffer Js_of_ocaml.Js.t | `arrayBufferView of Js_of_ocaml.Typed_array.arrayBufferView Js_of_ocaml.Js.t | `string of string | `js_string of Js_of_ocaml.Js.js_string Js_of_ocaml.Js.t ] list make_blob
Sourceclass type file = object ... end
Sourceclass type fileList = object ... end
Sourceclass type fileError = object ... end
Sourceclass type 'a progressEvent = object ... end
Sourceclass type progressEventTarget = object ... end
Sourcetype readyState = Js_of_ocaml.File.readyState =
  1. | EMPTY
  2. | LOADING
  3. | DONE
Sourceclass type fileReader = object ... end

filename file is the name of file (equivalent to file##.name).

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