package fmlib_browser
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
Write web applications for the browser in elm style
Install
dune-project
Dependency
Authors
Maintainers
Sources
0.6.1.tar.gz
sha256=22d5648fe40ab6c6106ee4c7092db6f3547b721c299092dd12f092a307c8ac59
doc/fmlib_browser/Fmlib_browser/Value/index.html
Module Fmlib_browser.ValueSource
Javascript Values
Javascript values are necessary to comunicate with the javascript world. In order to send a message to the surrounding javascript (see Task.send_to_javascript) a javascript value is needed. The following functions can be used to construct arbitrary javascript values (no functions, just data).
E.g. if you want to construct the javascript object
{first_name: "John", last_name: "Doe", age: 45}you just write
record
[|
"first_name", string "John"
; "last_name", string "Doe"
; "age", int 45
|]val null : tThe javascript value null
val string : string -> tstring str The javascript string str
val int : int -> tint 5 The javascript number 5.
val bool : bool -> tbool true The javascript value true.
val float : float -> tfloat 5 The javascript number 5.
record [| "a", int 5; "b", string "hello"|] is the javascript value {a: 5, b: 'hello'}|.
array [|int 5; string "hello"; bool true|] is the javascript array [5, "hello", true].
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>