package bonsai
A library for building dynamic webapps, using Js_of_ocaml
Install
Dune Dependency
Authors
Maintainers
Sources
bonsai-v0.16.0.tar.gz
sha256=1d68aab713659951eba5b85f21d6f9382e0efa8579a02c3be65d9071c6e86303
doc/bonsai.web_test/Bonsai_web_test/Result_spec/index.html
Module Bonsai_web_test.Result_spec
Source
include module type of struct include Bonsai_test.Result_spec end
include No_incoming
is a quick way to define a Result_spec
with no incoming events:
Source
val vdom :
?filter_printed_attributes:(string -> string -> bool) ->
?censor_paths:bool ->
?censor_hash:bool ->
?path_censoring_message:string ->
?hash_censoring_message:string ->
('a -> Bonsai_web_test__.Import.Vdom.Node.t) ->
('a, Core.Nothing.t) t
filter_printed_attributes
controls which attributes on a Node will get printed analyzing the string name of the attribute. Style properties correspond to their property name prefixed with "style.". For example, to filter out the "display" CSS property, you should return false for "style.display"; to filter out all CSS styles, return false when the string begins with "style.". A Node's key corresponds to the string "@key"
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>