package bonsai
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
A library for building dynamic webapps, using Js_of_ocaml
Install
dune-project
Dependency
Authors
Maintainers
Sources
v0.17.0.tar.gz
sha256=c78c4476ee6b856846e2d0941e5965009d5e1b853e564b2b1bee61202f0b1ebb
doc/bonsai.web/Bonsai_web/Effect/Focus/index.html
Module Effect.FocusSource
on_effect returns a Vdom.Attr.t and two unit Effect.ts that focus/blur the Vdom.Node.t containing the Vdom.Attr.t. The attr should not be used on more than one Vdom.Node.t, as only the first element will be focused/blurred when the effect runs.
When name_for_testing is provided, the focus and blur effects will print in test mode. They will be a no-op otherwise.
Source
val on_activate :
?name_for_testing:string ->
unit ->
Virtual_dom.Vdom.Attr.t Bonsai.For_open.Computation.ton_activate will focus the element that the returned attr is attached to when this computation is activated. See Bonsai.Edge for more details on the component lifecycle.
When name_for_testing is provided, the focus will print in test mode. It will be a no-op otherwise.
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>