package virtual_dom
OCaml bindings for the virtual-dom library
Install
Dune Dependency
Authors
Maintainers
Sources
v0.15.1.tar.gz
sha256=7f1fa83287458114c5b0cab8aae00d69972d15e1d20a446ce13f246aacef3216
doc/virtual_dom.ui_effect/Ui_effect/For_testing/index.html
Module Ui_effect.For_testing
Source
You can think of an Svar.t
as like an Ivar.t
whose purpose is to allow us to implement of_svar
below.
Create an effect from a function that returns an Svar.t
. This is mostly useful in testing, to emulate a 'query -> 'result Deferred.t
function that does not return immediately. You may find Query_response_tracker
a more convenient interface than using of_svar
directly.
Source
val of_query_response_tracker :
('query, 'result) Query_response_tracker.t ->
'query ->
'result t
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>