package brr
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
On This Page
Browser programming toolkit for OCaml
Install
dune-project
Dependency
Authors
Maintainers
Sources
brr-0.0.7.tbz
sha512=4b3d42eb6a32c1d6f1c5ef003f5311b5029156b31f6e51af098b695c769699e0304b66afd2dd574ecf1084e095bbbc4eac552daab083766cd81ed2f1d9897d51
doc/brr/Brr/At/index.html
Module Brr.At
DOM element attributes.
Attributes
type name = Jstr.tThe type for attribute names.
val void : tvoid is an attribute that doesn't exist. It is ignored by functions like El.v. This is v Jstr.empty Jstr.empty.
true' n is v n Jstr.empty. This sets the boolean attribute n to true. The attribute must be omitted to be false.
add_if c att atts is att :: atts if c is true and atts otherwise.
add_if_some n o atts is (v n value) :: atts if o is Some value and atts otherwise.
Attribute names and constructors
See the MDN HTML attribute reference.
Convention. Whenever an attribute name conflicts with an OCaml keyword we prime it, see for example class'.
module Name : sig ... endAttribute names.
type 'a cons = 'a -> tThe type for attribute constructors with value of type 'a.
val contenteditable : bool cons sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
On This Page