module Up:sig
..end
Example of use:
let e_up = Eliom_react.Up.create
(Eliom_parameter.ocaml "a" Json.t<string>)
in
... {{ ignore ( %e_up "A") }} ...
type 'a
t
create
function) whereas it is /effect-full/ on the client.val to_react : 'a t -> 'a React.E.t
to_react e
injects the up events e
into react events so that it can
be manipulated as a standard event.val create : ?scope:Eliom_common.scope ->
?name:string ->
('a, [ `WithoutSuffix ],
[ `One of 'a Eliom_parameter.ocaml ] Eliom_parameter.param_name)
Eliom_parameter.params_type -> 'a t
create param
creates an Up event.
If ~name
is present, the coservice used to transmit the event will
always have the same name, even if the server is restarted.
~scope
describes the visibility of the event. By default, it is
`Site
if it is called during initialisation,
`Client_process
otherwise.