Mithril.Attr
type t
The DOM attributes as an object
type attr
= Jstr.t * Jv.t
DOM attribute name
val attr : string -> Jv.t -> attr
attr s f makes and attribute called s with value f
attr s f
s
f
val v : attr array -> t
v attrs creates an object of attributes to pass to M.v
v attrs
M.v
include Jv.CONV with type Attr.t := t
val to_jv : t -> Jv.jv
val of_jv : Jv.jv -> t