package incr_dom

  1. Overview
  2. Docs
A library for building dynamic webapps, using Js_of_ocaml

Install

Dune Dependency

Authors

Maintainers

Sources

incr_dom-v0.16.0.tar.gz
sha256=199e5d3ab8299832e3c2c3a08db86a0e5859420e88a867f4da331b91d2078c1b

doc/incr_dom.vdom_file_download/Vdom_file_download/Button/index.html

Module Vdom_file_download.ButtonSource

Sourceval create : ?enabled:bool -> ?on_click: (Js_of_ocaml.Dom_html.mouseEvent Js_of_ocaml.Js.t -> unit Ui_effect.t) -> ?extra_attrs:Virtual_dom.Vdom.Attr.t list -> get_download:(unit -> t) -> button_text:string -> unit -> Virtual_dom.Vdom.Node.t

Creates a button which, when clicked, will create a download using get_download and then trigger it.

OCaml

Innovation. Community. Security.