Module Brr.Prop

module Prop: sig .. end
JavaScript properties.

type 'a t 
The type for properties of type 'a.
val v : undefined:'a -> Brr.Jstr.t list -> 'a t
v p : prop_type t is accessed via path p of type prop_type. Warning. Always constrain the type otherwise this is Obj.magic. p must be non-empty.
val get : 'a t -> 'b Js.t -> 'a
get p o is the property p of object o if defined and p's undefined value otherwise.
val set : 'a t -> 'a -> 'b Js.t -> unit
set p v o sets property p of object o to v.

Predefined properties

These properties all have an undefined value: Jstr.empty for strings, false for booleans.

val checked : bool t
val id : Brr.Jstr.t t
val name : Brr.Jstr.t t
val title : Brr.Jstr.t t
val value : Brr.Jstr.t t