package virtual_dom
OCaml bindings for the virtual-dom library
Install
Dune Dependency
Authors
Maintainers
Sources
virtual_dom-v0.16.0.tar.gz
sha256=0c6f07894dce56db88d46b3aa4f2cad1a84aeaf0009560a285492f9f2959d565
doc/virtual_dom.vdom_test_helpers/Virtual_dom_test_helpers/Handler/index.html
Module Virtual_dom_test_helpers.Handler
Source
The type representing an event handler e.g. onclick, onkeydown, etc... These event handlers can be triggered, but take care, accessing any of the fields on the event object in the callback will cause an exception to be raised.
Converts a js_any
into a handler. Throws an exception if the value isn't a javascript function.
Triggers the provided event handler.
Use the extra_fields
parameter in order to put extra fields on the event. This will let you simulate event handlers that read the event object's properties.
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>