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_test/Bonsai_web_test/Experimental/Handle/index.html
Module Experimental.HandleSource
Source
val create :
('a, 'b) Result_spec.t ->
?rpc_implementations:
Async_rpc_kernel.Rpc.Connection.t Async_rpc_kernel.Rpc.Implementation.t
list ->
?connectors:
(Bonsai_web.Rpc_effect.Where_to_connect.t ->
Bonsai_web.Rpc_effect.Connector.t) ->
?start_time:Core.Time_ns.t ->
?optimize:bool ->
'a Bonsai_web.Computation.t ->
('a, 'b) tshow prints out the result of the component as specified by the Result_spec that was passed into Handle.create.
recompute_view is like show, but it doesn't print anything. Calling recompute_view between invocations of show_diff does not affect the diff the gets shown.
This function calls recompute_view until either max_computes is reached (defaults to 100), or there are no more after-display lifecycle events for processing.
This can be useful when using e.g. Bonsai.Edge.on_change, which might otherwise delay their effects until the next frame.
Source
val flush_async_and_bonsai :
?max_iterations:int ->
?silence_between_frames:bool ->
(_, _) t ->
unit Async_kernel.Deferred.tSource
val click_on :
?extra_event_fields:(string * Js_of_ocaml.Js.Unsafe.any) list ->
?shift_key_down:bool ->
?alt_key_down:bool ->
?ctrl_key_down:bool ->
('a, 'b) t ->
selector:string ->
unitSource
val submit_form :
?extra_event_fields:(string * Js_of_ocaml.Js.Unsafe.any) list ->
('a, 'b) t ->
selector:string ->
unitSource
val set_checkbox :
?extra_event_fields:(string * Js_of_ocaml.Js.Unsafe.any) list ->
?shift_key_down:bool ->
?alt_key_down:bool ->
?ctrl_key_down:bool ->
('a, 'b) t ->
selector:string ->
checked:bool ->
unitSource
val input_text :
?extra_event_fields:(string * Js_of_ocaml.Js.Unsafe.any) list ->
('a, 'b) t ->
selector:string ->
text:string ->
unitSource
val keydown :
?extra_event_fields:(string * Js_of_ocaml.Js.Unsafe.any) list ->
?shift_key_down:bool ->
?alt_key_down:bool ->
?ctrl_key_down:bool ->
('a, 'b) t ->
selector:string ->
key:Js_of_ocaml.Dom_html.Keyboard_code.t ->
unitSource
val change :
?extra_event_fields:(string * Js_of_ocaml.Js.Unsafe.any) list ->
('a, 'b) t ->
selector:string ->
value:string ->
unitSource
val focus :
?extra_event_fields:(string * Js_of_ocaml.Js.Unsafe.any) list ->
('a, 'b) t ->
selector:string ->
unitSource
val blur :
?extra_event_fields:(string * Js_of_ocaml.Js.Unsafe.any) list ->
?related_target:string ->
('a, 'b) t ->
selector:string ->
unitSource
val mousemove :
?extra_event_fields:(string * Js_of_ocaml.Js.Unsafe.any) list ->
('a, 'b) t ->
selector:string ->
unitSource
val mouseenter :
?extra_event_fields:(string * Js_of_ocaml.Js.Unsafe.any) list ->
('a, 'b) t ->
selector:string ->
unitSource
val wheel :
?extra_event_fields:(string * Js_of_ocaml.Js.Unsafe.any) list ->
('a, 'b) t ->
selector:string ->
delta_y:float ->
unitSource
val trigger_hook :
('a, 'b) t ->
selector:string ->
name:string ->
('c -> unit Bonsai_web.Vdom.Effect.t) Core.Type_equal.Id.t ->
'c ->
unitSource
val trigger_hook_via :
('a, 'b) t ->
selector:string ->
name:string ->
't Core.Type_equal.Id.t ->
f:('t -> 'c -> unit Bonsai_web.Vdom.Effect.t) ->
'c ->
unitSource
val get_hook_value :
('a, 'b) t ->
selector:string ->
name:string ->
'c Core.Type_equal.Id.t ->
'c sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>