package bonsai
A library for building dynamic webapps, using Js_of_ocaml
Install
Dune Dependency
Authors
Maintainers
Sources
bonsai-v0.16.0.tar.gz
sha256=1d68aab713659951eba5b85f21d6f9382e0efa8579a02c3be65d9071c6e86303
doc/src/bonsai.web_test/import.ml.html
Source file import.ml
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
open! Core include Virtual_dom include Bonsai_web open Bonsai.Let_syntax module Effect = struct type 'a t = 'a Vdom.Effect.t let no_op = Vdom.Effect.Ignore let sequence xs = Vdom.Effect.Many xs let external_ = External_event.inject end module Driver = Bonsai_test.Arrow.Driver include Expect_test_helpers_core let opaque_const x = Bonsai.read (Bonsai.Var.value (Bonsai.Var.create x)) let opaque_const_value x = Bonsai.Var.value (Bonsai.Var.create x) let opaque_computation c = if%sub opaque_const_value true then c else assert false
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>