Module Brr.Prop

module Prop: sig .. end
JavaScript properties.

type 'a t 
The type for properties of type 'a.
val v : undefined:'a -> Brr.str 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: Str.empty for strings, false for booleans.

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