To focus the search input from anywhere on the page, press the 'S' key.
in-package search v0.1.0
package virtual_dom
-
virtual_dom
-
-
virtual_dom.keyboard
-
-
virtual_dom.layout
-
virtual_dom.svg
-
virtual_dom.ui_effect
-
virtual_dom.vdom_test_helpers
Legend:
Library
Module
Module type
Parameter
Class
Class type
Library
Module
Module type
Parameter
Class
Class type
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.
val sexp_of_t : t -> Sexplib0.Sexp.t
val of_any_exn : Js_of_ocaml.Js.Unsafe.any -> name:string -> t
Converts a js_any
into a handler. Throws an exception if the value isn't a javascript function.
val trigger :
?extra_fields:(string * Js_of_ocaml.Js.Unsafe.any) list ->
t ->
unit
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)"
>