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.keyboard/Vdom_keyboard/index.html
Module Vdom_keyboard
Source
A Grouped_help_text.t
is similar to a Help_text.t
, but allows the user to organize the commands into groups.
A Help_text.t
represents the documentation for a collection of commands. It can be displayed as a Vdom node.
A Keyboard_event_handler.t
is a collections of actions (commands and disabled keys) that can be used to handle keyboard events and to produce help text.
A Variable_keyboard_event_handler.t
provides a way of representing a keyboard event handler that contains both a (possibly empty) constant set of actions and a variable set of actions that depends on some 'env
variable. In order to handle keyboard events or produce help text, it must first be converted to a Keyboard_event_handler.t
using the function to_const_handler
.
Source
val with_keyboard_handler :
Virtual_dom.Vdom.Node.t ->
Keyboard_event_handler.t ->
Virtual_dom.Vdom.Node.t
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>