module Manip:sig..end
In this module, all the functions apply only to HTML5 element with
.
val appendChild : ?before:'a Eliom_content.Html5.elt ->
'b Eliom_content.Html5.elt -> 'c Eliom_content.Html5.elt -> unitappendChild e1 e2 inserts the element e2 as last
child of e1. If the optional parameter ~before:e3 is present
and if e3 is a child of e1, then e2 is inserted before e3
in the list of e1 children.val appendToBody : ?before:'a Eliom_content.Html5.elt -> 'c Eliom_content.Html5.elt -> unitval appendChildren : ?before:'a Eliom_content.Html5.elt ->
'b Eliom_content.Html5.elt -> 'c Eliom_content.Html5.elt list -> unitappendChildren e1 elts inserts elts as last children
of e1. If the optional parameter ~before:e3 is present and if
e3 is a child of e1, then elts are inserted before e3 in
the list of e1 children.val appendChildFirst : 'b Eliom_content.Html5.elt -> 'c Eliom_content.Html5.elt -> unitappendChildFirst p c appends c as first child of pval nth : 'a Eliom_content.Html5.elt -> int -> 'b Eliom_content.Html5.elt optionnth e n returns the nth child of e (first is 0)val childLength : 'a Eliom_content.Html5.elt -> intchildLength e returns the number of chilren of eval removeChild : 'a Eliom_content.Html5.elt -> 'b Eliom_content.Html5.elt -> unitremoveChild e1 e2 removes for e2 from the list of
e1 children.val replaceChild : 'a Eliom_content.Html5.elt ->
'b Eliom_content.Html5.elt -> 'c Eliom_content.Html5.elt -> unitreplace e1 e2 e3 replaces for e2 by e3 in the
list of e1 children.val removeChildren : 'a Eliom_content.Html5.elt -> unitremoveChildren e1 removes e1 children.val removeSelf : 'a Eliom_content.Html5.elt -> unitremoveSelf e removes element e from the DOM.val replaceChildren : 'a Eliom_content.Html5.elt -> 'b Eliom_content.Html5.elt list -> unitreplaceChildren e1 elts replaces all the children of
e1 by elt.val parentNode : 'a Eliom_content.Html5.elt -> 'b Eliom_content.Html5.elt optionparentNode elt returns the parent of elt, if any.val nextSibling : 'a Eliom_content.Html5.elt -> 'b Eliom_content.Html5.elt optionnextSibling elt returns the next element that has the same parent,
if elt is not the last.val previousSibling : 'a Eliom_content.Html5.elt -> 'b Eliom_content.Html5.elt optionpreviousSibling elt returns the previous element
that has the same parent,
if elt is not the first.val appendBefore : before:'a Eliom_content.Html5.elt -> 'b Eliom_content.Html5.elt -> unitappendBefore ~before elt insert elt before before.val appendAfter : after:'a Eliom_content.Html5.elt -> 'b Eliom_content.Html5.elt -> unitappendAfter ~after elt insert elt after after.val replaceSelf : 'a Eliom_content.Html5.elt -> 'b Eliom_content.Html5.elt -> unitreplaceSelf elt1 elt2 replaces elt1 by elt2.val children : 'a Eliom_content.Html5.elt -> 'b Eliom_content.Html5.elt listchildren elt returns the list of html children of elt.val addEventListener : ?capture:bool ->
'a Eliom_content.Html5.elt ->
(#Dom_html.event as 'b) Js.t Dom_html.Event.typ ->
('a Eliom_content.Html5.elt -> 'b Js.t -> bool) -> Dom_html.event_listener_idaddEventListener elt evt handler attach the
handler for the event evt on the element elt. See the
Js_of_ocaml manual, for a list of .module Named:sig..end
val scrollIntoView : ?bottom:bool -> 'a Eliom_content.Html5.elt -> unitscrollIntoView elt scroll the page to a position
where elt is displayed at the top of the window. If the optional
parameter ~bottom:true is present, the page is scrolled to a
position where elt is displayed at the bottom of the window.module Class:sig..end
module Elt:sig..end
module Ev:sig..end
module Attr:sig..end
module Css:sig..end
module SetCss:sig..end