package eliom

  1. Overview
  2. Docs
Advanced client/server Web and mobile framework

Install

Dune Dependency

Authors

Maintainers

Sources

11.1.1.tar.gz
md5=c8c67fe5fb8d3f44a3b17cc4a93a0e62
sha512=e58557a1b525efd011e0eb539b112b53e6c012ac3fb2153c251be030eda483dd3b19de625707cf5ffebd97fa6a7fabfb8a6aae8e8a61c79e0bd7ad2d289df9a9

doc/eliom.server/Eliom_shared/ReactiveData/RList/index.html

Module ReactiveData.RListSource

include Eliom_shared_sigs.RLIST with type 'a signal := 'a React.S.t and type 'a sv := 'a Value.t and type 'a ct := 'a FakeReactiveData.RList.t and type 'a chandle := 'a FakeReactiveData.RList.handle
Sourcetype 'a t

The type of (shared) reactive lists

Sourcetype 'a handle

Handles are used to manipulate reactive lists

Sourceval create : ?default: ('a FakeReactiveData.RList.t * 'a FakeReactiveData.RList.handle) option Eliom_client_value.t -> ?reset_default:bool -> 'a list -> 'a t * 'a handle

create ?default ?reset_default l produces a pair l, f, where s is a (shared) reactive list, and f is a handle for manipulating the list.

The initial value of the list is l, unless default is provided. default, if provided, is used as the client-side list (and corresponding handle). reset_default, if set to true (default: false), resets the value of default to l.

Sourceval concat : 'a t -> 'a t -> 'a t
Sourceval value : 'a t -> 'a list Value.t
Sourceval signal : ?eq:('a -> 'a -> bool) Value.t -> 'a t -> 'a list React.S.t
Sourceval singleton_s : 'a React.S.t -> 'a t
Sourceval map : ('a -> 'b) Value.t -> 'a t -> 'b t
Sourceval from_signal : ?eq:('a -> 'a -> bool) Value.t -> 'a list React.S.t -> 'a t
Sourceval acc_e : ?init:('a t * 'a handle) -> 'a React.E.t Eliom_client_value.t -> 'a t
Sourcemodule Lwt : sig ... end

Cooperative versions of the ReactiveData operators

Sourceval synced : 'a t -> bool

If synced l is true, then the server-side and client-side values of l are equal. This means that the client-side code can initially rely on the server-provided value, and defer any updates until the first client-side update of l.

OCaml

Innovation. Community. Security.