Index of values


A
a [Brr.El.Name]
a [Brr.El]
a
abbr [Brr.El.Name]
abbr [Brr.El]
abort [Brr.Ev]
add [Brr.Store]
add k v maps k to v.
add_cb [Brr.Ev]
add_cb ~capture t k f calls f e ev whenever an event ev of kind k occurs on t.
add_if [Brr.Att]
add_if b a l adds a to l iff b is true
address [Brr.El.Name]
address [Brr.El]
afterprint [Brr.Ev]
app [Brr.Log]
app is msg App.
append [Brr.Str]
append s0 s1 appends s1 to s0.
area [Brr.El.Name]
area [Brr.El]
article [Brr.El.Name]
article [Brr.El]
aside [Brr.El.Name]
aside [Brr.El]
audio [Brr.El.Name]
audio [Brr.El]
autofocus [Brr.Att.Name]
autofocus [Brr.Att]
average_finger_width [Brr.Human]
average_finger_width is 11.mm, the average adult finger width.

B
b [Brr.El.Name]
b [Brr.El]
b
back [Brr.History]
back () is go ~-1.
base [Brr.El.Name]
base [Brr.El]
bdi [Brr.El.Name]
bdi [Brr.El]
bdi
bdo [Brr.El.Name]
bdo [Brr.El]
bdo
beforeprint [Brr.Ev]
beforeunload [Brr.Ev]
blockquote [Brr.El.Name]
blockquote [Brr.El]
blur [Brr.Ev]
body [Brr.El.Name]
body [Brr.El]
br [Brr.El.Name]
br [Brr.El]
br
button [Brr.El.Name]
button [Brr.El]

C
cached [Brr.Ev]
call [Brr.El]
call f ~on e calls f on e with the value of e whenever on occurs.
canvas [Brr.El.Name]
canvas [Brr.El]
caption [Brr.El.Name]
caption [Brr.El]
cb_ret [Brr.Ev]
cb_ret ~propagate ~default ev returns from the callback and propagates event ev if propagate is true (default).
change [Brr.Ev]
checked [Brr.Att.Name]
checked [Brr.Att]
checked [Brr.Prop]
chop [Brr.Str]
chop prefix s is s without the prefix prefix or None if prefix is not a prefix of s.
cite [Brr.El.Name]
cite [Brr.El]
clear [Brr.Store]
clear (), clears all mapping.
click [Brr.Ev]
click [Brr.El]
click e simulates a click on e.
code [Brr.El.Name]
code [Brr.El]
col [Brr.El.Name]
col [Brr.El]
col
colgroup [Brr.El.Name]
colgroup [Brr.El]
command [Brr.El.Name]
command [Brr.El]
compare [Brr.Key]
compare is a total order on keys compatible with Brr.Key.equal.
compare [Brr.Str]
compare s0 s1 is a total order on strings compatible with Brr.Str.equal.
concat [Brr.Str]
concat sep ss is the concatenates the list of strings ss inserting sep between each of them.
counter [Brr.Time]
counter () is a counter counting time from call time on.
counter_value [Brr.Time]
counter_value c is the current counter value in seconds.
create_state [Brr.History]
create_state version v is state v with version version.
cuts [Brr.Str]
cuts sep s is the list of all (possibly empty) substrings of s that are delimited by matches of the non empty separator string sep.

D
datalist [Brr.El.Name]
datalist [Brr.El]
dblclick [Brr.Ev]
dd [Brr.El.Name]
dd [Brr.El]
dd
debug [Brr.Log]
debug is msg Debug.
def_att [Brr.El]
def_att a v e defines the attribute a of e over time with the value of v.
def_children [Brr.El]
def_children e cs defines e's children over time with the value of signal cs.
def_class [Brr.El]
rdef_class a b e defines the membership of e to class e over time with the value of b.
def_focus [Brr.El]
def_focus e v defines the focus of e over time with the value of v.
def_prop [Brr.El]
def_prop p v e defines the property p of e over time with the value of v.
del [Brr.El.Name]
del [Brr.El]
del
destroy [Brr.Mouse]
destroy m removes the callbacks registred by m.
details [Brr.El.Name]
details [Brr.El]
dfn [Brr.El.Name]
dfn [Brr.El]
dfn
disabled [Brr.Att.Name]
disabled [Brr.Att]
div [Brr.El.Name]
div [Brr.El]
div
dl [Brr.El.Name]
dl [Brr.El]
dl
document [Brr.El]
document is the document's element of the current browser document.
document_body [Brr.El]
document_body is the Brr.El.body element of the current browser document.
domContentLoaded [Brr.Ev]
down [Brr.Key]
down is Brr.Ev.keydown.
dpos [Brr.Mouse]
dpos m occurs on mouse moves with current mouse position minus the previous position.
dt [Brr.El.Name]
dt [Brr.El]
dt
dump_obj [Brr.Debug]
dump_obj o dumps object o on the browser console with level debug.

E
el [Brr.El]
el (`El e) is e.
elapsed [Brr.Time]
elapsed () is the number of seconds elapsed since the beginning of the program.
em [Brr.El.Name]
em [Brr.El]
em
embed [Brr.El.Name]
embed [Brr.El]
empty [Brr.Str]
empty is an empty string.
enter [Brr.Debug]
enter () stops and enters the JavaScript debugger (if available).
env [Brr.App]
env var ~default parse lookups var in the environment, parses it with parse and returns the result.
equal [Brr.Key]
equal k0 k1 is true iff k0 and k1 are equal.
equal [Brr.Str]
equal s0 s1 is true iff s0 and s1 are equal.
err [Brr.Log]
err is msg Error.
error [Brr.Ev]
ev [Brr.Ev]
ev e is e.

F
feel [Brr.Human]
feel () is a signal that varies according to user latency constants: [user_feel ()]t = `Interacting if t < User.interrupted., [user_feel ()]t = `Interrupted if t < User.left., [user_feel ()]t = `Left if t >= User.left.
fieldset [Brr.El.Name]
fieldset [Brr.El]
figcaption [Brr.El.Name]
figcaption [Brr.El]
figure [Brr.El.Name]
figure [Brr.El]
find [Brr.Store]
find k is k's mapping in m, if any.
find [Brr.El]
find ~id is the element with id id in the browser document (if any).
focus [Brr.Ev]
footer [Brr.El.Name]
footer [Brr.El]
for' [Brr.Att.Name]
for' [Brr.Att]
for_el [Brr.Mouse]
for_el is like Brr.Mouse.for_target but for an element.
for_el [Brr.Key]
for_el (`El t) k is event k t.
for_el [Brr.Ev]
for_el is like Brr.Ev.for_target except the target is an element.
for_els [Brr.Ev]
for_els is like Brr.Ev.for_targets excepts the targets are elements.
for_target [Brr.Mouse]
for_target t pt is mouse events for target t using pt to construct points.
for_target [Brr.Key]
for_target t k is Brr.Ev.for_target t k of_ev.
for_target [Brr.Ev]
for_target ~capture ~propagate ~default t k f is an event that reports events of kind k transformed by f on target t.
for_targets [Brr.Ev]
Brr.Ev.for_targets is like Brr.Ev.for_target except the event occurs for the event kind on the given list of targets.
force_version [Brr.Store]
force_version v checks that the version of the store is v.
form [Brr.El.Name]
form [Brr.El]
forward [Brr.History]
forward () is go 1.
fragment [Brr.Loc]
fragment () is fragment of Brr.Loc.uri () with the hash.

G
get [Brr.Store]
get k is k's mapping.
get [Brr.Prop]
get p o is the property p of object o if defined and p's undefined value otherwise.
get_att [Brr.El]
get_att a e is the value of the attribute a of e (if any).
get_class [Brr.El]
get_class c e is the membership of e to class c.
go [Brr.History]
go step goes step numbers forward (positive) or backward (negative) in history.

H
h1 [Brr.El.Name]
h1 [Brr.El]
h1
h2 [Brr.El.Name]
h2 [Brr.El]
h2
h3 [Brr.El.Name]
h3 [Brr.El]
h3
h4 [Brr.El.Name]
h4 [Brr.El]
h4
h5 [Brr.El.Name]
h5 [Brr.El]
h5
h6 [Brr.El.Name]
h6 [Brr.El]
h6
hashchange [Brr.Loc]
hashchange occurs whenever the window's fragment changes with the new value of fragment ().
hashchange [Brr.Ev]
head [Brr.El.Name]
head [Brr.El]
header [Brr.El.Name]
header [Brr.El]
height [Brr.Att.Name]
height [Brr.Att]
hgroup [Brr.El.Name]
hgroup [Brr.El]
hold_logr [Brr.El]
hold_logr e l lets e hold logger l and destroy it via Brr.El.on_rem once e is removed from the document.
host [Brr.Loc]
host () is the host of Brr.Loc.uri ().
hr [Brr.El.Name]
hr [Brr.El]
hr
href [Brr.Att.Name]
href [Brr.Att]
html [Brr.El.Name]
html [Brr.El]

I
i [Brr.El.Name]
i [Brr.El]
i
id [Brr.Att.Name]
id [Brr.Att]
id [Brr.Prop]
iframe [Brr.El.Name]
iframe [Brr.El]
img [Brr.El.Name]
img [Brr.El]
img
info [Brr.Log]
info is msg Info.
input [Brr.Ev]
input [Brr.El.Name]
input [Brr.El]
ins [Brr.El.Name]
ins [Brr.El]
ins
interrupted [Brr.Human]
interrupted is 1.s, the time span after which the user will feel interrupted and feedback from the system is needed.
invalid [Brr.Ev]
is_empty [Brr.Str]
is_empty s is true iff s is an empty string.

K
kbd [Brr.El.Name]
kbd [Brr.El]
kbd
key [Brr.Store]
key ~ns () is a new storage key in namespace ns.
keydown [Brr.Ev]
keygen [Brr.El.Name]
keygen [Brr.El]
keypress [Brr.Ev]
keyup [Brr.Ev]
kind [Brr.Ev]
klass [Brr.Att.Name]
klass [Brr.Att]
class really.
kmsg [Brr.Log]
kmsg k level m logs m with level level and continues with k.

L
label [Brr.El.Name]
label [Brr.El]
languages [Brr.Info]
languages () is the user's preferred languages as BCP 47 language tags.
left [Brr.Human]
left is 10.s, the time span after which the user will switch to another task and feedback indicating when the system expects to respond is needed.
left [Brr.Mouse]
left m is true whenever the left mouse button went down in the target and did not go up yet.
left_down [Brr.Mouse]
left_down m has an occurence with the mouse position whenever the button goes down in the target.
left_up [Brr.Mouse]
left_up m is true whenever the left mouse button went down in the target and goes back up anywhere.
legend [Brr.El.Name]
legend [Brr.El]
length [Brr.History]
length () is the number of elements in the history including the currently loaded page.
li [Brr.El.Name]
li [Brr.El]
li
link [Brr.El.Name]
link [Brr.El]
load [Brr.Ev]

M
map [Brr.El.Name]
map [Brr.El]
map
mark [Brr.El.Name]
mark [Brr.El]
may_hold_logr [Brr.El]
may_hold_logr e l is like Brr.El.hold_logr but does nothing on None.
mem [Brr.Store]
mem k is true iff k has a mapping.
mem [Brr.Mouse]
mem m is true whenever the mouse position is inside the target.
menu [Brr.El.Name]
menu [Brr.El]
message [Brr.Ev]
meta [Brr.El.Name]
meta [Brr.El]
meter [Brr.El.Name]
meter [Brr.El]
mid [Brr.Mouse]
mid is like Brr.Mouse.left but the middle button.
mid_down [Brr.Mouse]
mid_downis like Brr.Mouse.left_down but for the middle button.
mid_up [Brr.Mouse]
mid_up is like Brr.Mouse.left_up but for the middle button.
mousedown [Brr.Ev]
mouseenter [Brr.Ev]
mouseleave [Brr.Ev]
mousemove [Brr.Ev]
mouseout [Brr.Ev]
mouseover [Brr.Ev]
mouseup [Brr.Ev]
msg [Brr.Log]
msg l (fun m -> m fmt ...) logs with level l a message formatted with fmt.

N
name [Brr.Att.Name]
name [Brr.Att]
name [Brr.Prop]
nav [Brr.El.Name]
nav [Brr.El]
nav
noscript [Brr.El.Name]
noscript [Brr.El]
noticed [Brr.Human]
noticed is 0.1s, the time span after which the user will notice a delay and feel that the system is not reacting instantaneously.

O
object' [Brr.El.Name]
object' [Brr.El]
of_ev [Brr.Key]
of_ev e is the physical key of e.
of_string [Brr.Str]
of_string s is the OCaml string s as a JavaScript string.
offline [Brr.Ev]
ol [Brr.El.Name]
ol [Brr.El]
ol
on_add [Brr.El]
on_add f e references f until e is inserted in the HTML DOM, at which point f () is invoked.
on_rem [Brr.El]
on_rem f e references f until e is removed from the HTML DOM, at which point f () is invoked.
online [Brr.Ev]
optgroup [Brr.El.Name]
optgroup [Brr.El]
option [Brr.El.Name]
option [Brr.El]
output [Brr.El.Name]
output [Brr.El]

P
p [Brr.El.Name]
p [Brr.El]
p
pagehide [Brr.Ev]
pageshow [Brr.Ev]
param [Brr.El.Name]
param [Brr.El]
path [Brr.Loc]
path () is the path of Brr.Loc.uri ().
placeholder [Brr.Att.Name]
placeholder [Brr.Att]
popstate [Brr.Ev]
port [Brr.Loc]
port () is the port of Brr.Loc.uri ().
pos [Brr.Mouse]
pos m is the current mouse position in the target.
pp [Brr.Key]
pp formats keys.
pp [Brr.Str]
pp ppf s prints s on ppf.
pp_ms [Brr.Time]
pp_ms ppf s prints s seconds in milliseconds.
pp_mus [Brr.Time]
pp_mus ppf s prints s seconds in microseconds.
pp_obj [Brr.Debug]
pp_obj ppf o applies the method toString to object o and prints the the resulting string on ppf.
pp_s [Brr.Time]
pp_s ppf s prints s seconds in seconds.
pre [Brr.El.Name]
pre [Brr.El]
pre
progress [Brr.El.Name]
progress [Brr.El]
pt [Brr.Mouse]
pt x y is (x, y).
push [Brr.History]
push ~replace ~state ~title uri changes the browser location to uri but doesn't load the URI.

Q
q [Brr.El.Name]
q [Brr.El]
q
query [Brr.Loc]
query () is the query of Brr.Loc.uri ().
quit [Brr.App]
quit occurs whenever the user requested to quit.

R
rchop [Brr.Str]
rchop suffix s is s without the suffix suffix or None if suffix is not a suffix of s.
readystatechange [Brr.Ev]
reload [Brr.Loc]
reload () reloads the current location.
rem [Brr.Store]
rem k unbinds k.
rem_cb [Brr.Ev]
rem_cb cb removes the callback cb.
reset [Brr.Ev]
resize [Brr.Ev]
rget [Brr.Prop]
rget p ~on o is the property p of o when on occurs.
rget_att [Brr.El]
rget_att a ~on e is the value of attribute a of e whenever e occurs.
rget_class [Brr.El]
rget_class a ~on e is the membership of e to class c.
rget_prop [Brr.El]
right [Brr.Mouse]
right is like Brr.Mouse.left but the right button.
right_down [Brr.Mouse]
right_downis like Brr.Mouse.left_down but for the right button.
right_up [Brr.Mouse]
right_up is like Brr.Mouse.left_up but for the right button.
rp [Brr.El.Name]
rp [Brr.El]
rp
rset_att [Brr.El]
rset_att a ~on e sets attribute a of e with the value of e whenever it occurs.
rset_children [Brr.El]
rset_children e ~on sets e's children with the value of on whenever it occurs.
rset_class [Brr.El]
rset_class a ~on e sets the membership of e to class e with the value of on whenever it occurs.
rset_focus [Brr.El]
rset_focus e ~on sets e's focus with the value of on whenever it occurs.
rset_prop [Brr.El]
rset_prop p ~on e sets property p of e to the value of on whenever it occurs.
rt [Brr.El.Name]
rt [Brr.El]
rt
ruby [Brr.El.Name]
ruby [Brr.El]
run [Brr.App]

S
s [Brr.El.Name]
s [Brr.El]
s
samp [Brr.El.Name]
samp [Brr.El]
scheme [Brr.Loc]
scheme () is the scheme of Brr.Loc.uri ().
script [Brr.El.Name]
script [Brr.El]
section [Brr.El.Name]
section [Brr.El]
select [Brr.El.Name]
select [Brr.El]
select_txt [Brr.El]
select_txt e selects the textual contents of e.
set [Brr.Loc]
set replace uri sets to browser location to uri, if replace is true the current location is removed from the session history (defaults to false).
set [Brr.Prop]
set p v o sets property p of object o to v.
set_att [Brr.El]
set_att a v e sets the value of attribute a of e to v.
set_children [Brr.El]
set_children e children sets e's children to children
set_class [Brr.El]
set_class c b e sets the membership of e to class c according to b.
set_focus [Brr.El]
focus b e sets the focus of e to b.
set_fragment [Brr.Loc]
set_fragment frag sets the fragment of Brr.Loc.uri () to frag.
set_kmsg [Brr.Log]
set_kmsg kmsg sets the logging function to kmsg.
slice [Brr.Str]
slice ~start ~stop s is the string s.
small [Brr.El.Name]
small [Brr.El]
source [Brr.El.Name]
source [Brr.El]
span [Brr.El.Name]
span [Brr.El]
src [Brr.Att.Name]
src [Brr.Att]
stamp [Brr.Ev]
stamp v e is v.
state [Brr.History]
state version deafult () is the current state if it matches version.
str [Brr]
str s is s as a JavaScript string.
strf [Brr]
strf fmt ... is a formatted Javascript string.
strong [Brr.El.Name]
strong [Brr.El]
style [Brr.El.Name]
style [Brr.El]
sub [Brr.El.Name]
sub [Brr.El]
sub
submit [Brr.Ev]
summary [Brr.El.Name]
summary [Brr.El]
sup [Brr.El.Name]
sup [Brr.El]
sup
support [Brr.Store]
support scope is true iff values can be stored in scope.

T
tabindex [Brr.Att.Name]
tabindex [Brr.Att]
table [Brr.El.Name]
table [Brr.El]
tbody [Brr.El.Name]
tbody [Brr.El]
td [Brr.El.Name]
td [Brr.El]
td
textarea [Brr.El.Name]
textarea [Brr.El]
tfoot [Brr.El.Name]
tfoot [Brr.El]
th [Brr.El.Name]
th [Brr.El]
th
thead [Brr.El.Name]
thead [Brr.El]
tick [Brr.Time]
tick span is an event that occurs once in span seconds with the value span - span' where span' is the actual delay performed by the system.
tick [Brr.Debug]
tick formats "tick" on any value.
time [Brr.El.Name]
time [Brr.El]
title [Brr.El.Name]
title [Brr.El]
title [Brr.Att.Name]
title [Brr.Att]
title [Brr.Prop]
to_string [Brr.Str]
to_string s is s as an OCaml string.
touch_target_pad [Brr.Human]
touch_target_pad is 2.mm, the minimum padding size in millimeters between two touch targets.
touch_target_size [Brr.Human]
touch_target_size is 9.mm, the recommended touch target size in millimiters.
touch_target_size_min [Brr.Human]
touch_size_min is 7.mm, the minimal touch target size in millimeters.
tr [Brr.El.Name]
tr [Brr.El]
tr
trace [Brr.Debug]
trace ~pp v traces with Brr.Log.debug the value of v with pp (default is a no-op) and identifier id.
trace_e [Brr.Debug]
trace_e ~pp id e traces e's occurence with Brr.Log.debug, pp (defaults to Brr.Debug.tick) and identifier id.
trace_s [Brr.Debug]
trace_s ~pp id s traces s's changes with Brr.Log.debug, pp and identifier id.
track [Brr.El.Name]
track [Brr.El]
trim [Brr.Str]
trim s is s without whitespace from the beginning and end of the string.
txt [Brr.El]
txt s is `Txt (str s)
txtf [Brr.El]
txtf fmt ... is a text child formatted according to txtf.
type' [Brr.Att.Name]
type' [Brr.Att]

U
u [Brr.El.Name]
u [Brr.El]
u
ul [Brr.El.Name]
ul [Brr.El]
ul
unit [Brr.Ev]
unit e is ().
unload [Brr.Ev]
up [Brr.Key]
up is Brr.Ev.keyup.
update [Brr.Loc]
update ~scheme ~hostname ~port ~path ~query ~fragment () updates the corresponding parts of the location's URI.
uri [Brr.Loc]
uri () is the browser's location full URI.

V
v [Brr.El]
v ?atts name cs is an element name with attribute atts (defaults to []) and children cs.
v [Brr.Att]
v name v is the attribute name with value v.
v [Brr.Prop]
v p : prop_type t is accesed via path p of type prop_type.
value [Brr.Att.Name]
value [Brr.Att]
value [Brr.Prop]
var [Brr.El.Name]
var [Brr.El]
var
vf [Brr.Att]
vf name fmt ... is the attribute name with a formatted string fmt.
video [Brr.El.Name]
video [Brr.El]
vstr [Brr.Att]
vstr name s is v (str name) (str v).
vstr [Brr.Prop]
vstr p is v (List.map str p).
vstrf [Brr.Att]
vstrf name fmt ... is vf (str name) fmt ...

W
warn [Brr.Log]
warn is msg Warning.
wbr [Brr.El.Name]
wbr [Brr.El]
wbr
width [Brr.Att.Name]
width [Brr.Att]