.TH "Eliom_content.Svg.Manip" 3o 2014-07-10 OCamldoc "" .SH NAME Eliom_content.Svg.Manip \- DOM-like manipulation functions. .SH Module Module Eliom_content.Svg.Manip .SH Documentation .sp Module .BI "Manip" : .B sig end .sp DOM\-like manipulation functions\&. .sp In this module, all the functions apply only to SVG element with \&. .sp .sp .sp .sp .I val appendChild : .B ?before:'a Eliom_content.Svg.elt -> .B 'b Eliom_content.Svg.elt -> 'c Eliom_content.Svg.elt -> unit .sp The function .B appendChild e1 e2 inserts the element .B e2 as last child of .B e1 \&. If the optional parameter .B ~before:e3 is present and if .B e3 is a child of .B e1 , then .B e2 is inserted before .B e3 in the list of .B e1 children\&. .sp .sp .I val appendChildren : .B ?before:'a Eliom_content.Svg.elt -> .B 'b Eliom_content.Svg.elt -> 'c Eliom_content.Svg.elt list -> unit .sp The function .B appendChildren e1 elts inserts .B elts as last children of .B e1 \&. If the optional parameter .B ~before:e3 is present and if .B e3 is a child of .B e1 , then .B elts are inserted before .B e3 in the list of .B e1 children\&. .sp .sp .I val appendChildFirst : .B 'b Eliom_content.Svg.elt -> 'c Eliom_content.Svg.elt -> unit .sp .B appendChildFirst p c appends .B c as first child of .B p .sp .sp .I val nth : .B 'a Eliom_content.Svg.elt -> int -> 'b Eliom_content.Svg.elt option .sp .B nth e n returns the nth child of .B e (first is 0) .sp .sp .I val childLength : .B 'a Eliom_content.Svg.elt -> int .sp .B childLength e returns the number of chilren of .B e .sp .sp .I val removeChild : .B 'a Eliom_content.Svg.elt -> 'b Eliom_content.Svg.elt -> unit .sp The function .B removeChild e1 e2 removes for .B e2 from the list of .B e1 children\&. .sp .sp .I val replaceChild : .B 'a Eliom_content.Svg.elt -> .B 'b Eliom_content.Svg.elt -> 'c Eliom_content.Svg.elt -> unit .sp The function .B replace e1 e2 e3 replaces for .B e2 by .B e3 in the list of .B e1 children\&. .sp .sp .I val removeChildren : .B 'a Eliom_content.Svg.elt -> unit .sp The function .B removeChildren e1 removes .B e1 children\&. .sp .sp .I val removeSelf : .B 'a Eliom_content.Svg.elt -> unit .sp .B removeSelf e removes element e from the DOM\&. .sp .sp .I val replaceChildren : .B 'a Eliom_content.Svg.elt -> 'b Eliom_content.Svg.elt list -> unit .sp The function .B replaceChildren e1 elts replaces all the children of .B e1 by .B elt \&. .sp .sp .I module Named : .B sig end .sp Dom manipulation by element identifier\&. .sp .sp .I module Class : .B sig end .sp .sp