package bonsai
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
A library for building dynamic webapps, using Js_of_ocaml
Install
dune-project
Dependency
Authors
Maintainers
Sources
v0.17.0.tar.gz
sha256=c78c4476ee6b856846e2d0941e5965009d5e1b853e564b2b1bee61202f0b1ebb
doc/bonsai.web_ui_view/Bonsai_web_ui_view/Theme/index.html
Module Bonsai_web_ui_view.ThemeSource
Fetches the theme currently installed into Bonsai's scope.
Source
val set_for_app :
t Bonsai.Value.t ->
Virtual_dom.Vdom.Node.t Bonsai.Computation.t ->
Virtual_dom.Vdom.Node.t Bonsai.Computation.tSets the given theme as 'current' for the provided computation, and registers the returned Vdom node as the "application-node" giving it the power to do things like set the window's background color and font-family.
Source
val set_for_app' :
t Bonsai.Value.t ->
('a * Virtual_dom.Vdom.Node.t) Bonsai.Computation.t ->
('a * Virtual_dom.Vdom.Node.t) Bonsai.Computation.tSame as set_for_app but permits the app to return an arbitrary value in addition to the top-level app component
Source
val override_constants_for_computation :
f:(Constants.t -> Constants.t) ->
'a Bonsai.Computation.t ->
'a Bonsai.Computation.tThis function allows the caller to build a new theme based on the current theme's constants, installing that new theme for all users inside the given computation.
Source
val set_for_computation :
t Bonsai.Value.t ->
'a Bonsai.Computation.t ->
'a Bonsai.Computation.tset_temporarily will install a new theme for all theme-users inside the given computation.
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>