module Att:sig
..end
typename =
Brr.Jstr.t
typet =
name * Brr.Jstr.t
val add_if : bool -> t -> t list -> t list
add_if b a l
is a :: l
if b
is true
and l
otherwiseval add_some : name -> Brr.Jstr.t option -> t list -> t list
add_some n o l
is v n a :: l
if o
is Some a
and l
otherwise.
Convention. Whenever an attribute name conflicts with an OCaml
keyword we prime them, see for example Brr.Att.class'
.
module Name:sig
..end
val autofocus : t
val checked : t
val class' : Brr.Jstr.t -> t
val disabled : t
val for' : Brr.Jstr.t -> t
val height : int -> t
val href : Brr.Jstr.t -> t
val id : Brr.Jstr.t -> t
val name : Brr.Jstr.t -> t
val placeholder : Brr.Jstr.t -> t
val src : Brr.Jstr.t -> t
val tabindex : int -> t
val title : Brr.Jstr.t -> t
val type' : Brr.Jstr.t -> t
val value : Brr.Jstr.t -> t
val width : int -> t