Module Brr.Att

module Att: sig .. end
DOM element attributes.


Attributes


type name = Brr.str 
The type for attribute names.
type t = name * Brr.str 
The type for attributes.
val add_if : bool -> t -> t list -> t list
add_if b a l is a :: l if b is true and l otherwise
val add_some : name -> Brr.str option -> t list -> t list
add_some n o l is v n a :: l if o is Some a and l otherwise.

Predefined attribute constructors and names

Convention. Whenever an attribute name conflicts with an OCaml keyword we prime them, see for example Brr.Att.class'.

module Name: sig .. end
Attribute names.
val autofocus : t
val checked : t
val class' : Brr.str -> t
val disabled : t
val for' : Brr.str -> t
val height : int -> t
val href : Brr.str -> t
val id : Brr.str -> t
val name : Brr.str -> t
val placeholder : Brr.str -> t
val src : Brr.str -> t
val tabindex : int -> t
val title : Brr.str -> t
val type' : Brr.str -> t
val value : Brr.str -> t
val width : int -> t