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 v : name -> Brr.str -> t
v name v is the attribute name with value v.
val vf : name ->
('a, Format.formatter, unit, t) Pervasives.format4 -> 'a
vf name fmt ... is the attribute name with a formatted string fmt.
val vstr : string -> string -> t
vstr name s is v (str name) (str v).
val vstrf : name ->
('a, Format.formatter, unit, t) Pervasives.format4 -> 'a
vstrf name fmt ... is vf (str name) fmt ...
val add_if : bool -> t -> t list -> t list
add_if b a l adds a to l iff b is true

Predefined attribute names and constructors

Convention. Except for Brr.Att.klass whenever an attribute name conflicts with an OCaml keyword we prime them, see for example Brr.Att.for'.

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