package eliom
Install
Dune Dependency
Authors
Maintainers
Sources
md5=c8c67fe5fb8d3f44a3b17cc4a93a0e62
sha512=e58557a1b525efd011e0eb539b112b53e6c012ac3fb2153c251be030eda483dd3b19de625707cf5ffebd97fa6a7fabfb8a6aae8e8a61c79e0bd7ad2d289df9a9
doc/eliom.server/Eliom_content/Xml/index.html
Module Eliom_content.Xml
Source
Low-level XML manipulation.
Base functions
See <<a_api project="tyxml" | module Xml_sigs.Iterable >>
.
include Xml_sigs.Iterable
with type 'a wrap = 'a
and type 'a list_wrap = 'a list
and type event_handler =
(Js_of_ocaml.Dom_html.event Js_of_ocaml.Js.t ->
unit)
Eliom_client_value.t
and type mouse_event_handler =
(Js_of_ocaml.Dom_html.mouseEvent Js_of_ocaml.Js.t ->
unit)
Eliom_client_value.t
and type keyboard_event_handler =
(Js_of_ocaml.Dom_html.keyboardEvent Js_of_ocaml.Js.t ->
unit)
Eliom_client_value.t
and type touch_event_handler =
(Js_of_ocaml.Dom_html.touchEvent Js_of_ocaml.Js.t ->
unit)
Eliom_client_value.t
module W : sig ... end
type event_handler =
(Js_of_ocaml.Dom_html.event Js_of_ocaml.Js.t -> unit) Eliom_client_value.t
type mouse_event_handler =
(Js_of_ocaml.Dom_html.mouseEvent Js_of_ocaml.Js.t ->
unit)
Eliom_client_value.t
type keyboard_event_handler =
(Js_of_ocaml.Dom_html.keyboardEvent Js_of_ocaml.Js.t ->
unit)
Eliom_client_value.t
type touch_event_handler =
(Js_of_ocaml.Dom_html.touchEvent Js_of_ocaml.Js.t ->
unit)
Eliom_client_value.t
Unique nodes
Unique nodes are XML nodes that are manipulated 'by reference' when sent to the client part of an Eliom-application: the created element is allocated only one time in each instance of an application. See <<a_manual chapter="clientserver-html"
fragment="unique" |the eliom manual>>
for more details.
Event handlers
Values of type caml_event_handler
represents event handler build with the {{ ... }}
syntax (see the Eliom manual for more information on <<a_manual chapter="clientserver-html"
fragment="syntax"|syntax extension>>
). Such values are expected by functions like Eliom_content.Html.a_onclick
.
Eliom_content.Xml.wrap page v
is like Eliom_wrap.wrap v
but it makes sure that all elt
s in v
which are included in page
are sent with empty content. This is safe because such elements will be taken from the DOM on the client either ways.