---
name: "Eliom_content.Svg.Manip.client"
section: "3o"
platform: "linux"
package: "libeliom-ocaml-doc"
version: "4.0.0-2"
release: "Debian 8 (Jessie)"
platforms: ["linux"]
url: "https://new.carta.tech/Eliom_content.Svg.Manip.client"
---

# Eliom\_content.Svg.Manip.client(3o)

DOM-like manipulation functions.

## NAME

Eliom\_content.Svg.Manip - DOM-like manipulation functions.

## Module

Module   Eliom\_content.Svg.Manip

## Documentation

Module **Manip**\
  :  **sig end**

DOM-like manipulation functions.

In this module, all the functions apply only to SVG element with .

*val appendChild* :  **?before:'a Eliom\_content.Svg.elt -\>** **'b Eliom\_content.Svg.elt -\> 'c Eliom\_content.Svg.elt -\> unit**

The function  **appendChild 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 appendChildren* :  **?before:'a Eliom\_content.Svg.elt -\>** **'b Eliom\_content.Svg.elt -\> 'c Eliom\_content.Svg.elt list -\> unit**

The function  **appendChildren 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.Svg.elt -\> 'c Eliom\_content.Svg.elt -\> unit**

**appendChildFirst p c** appends  **c** as first child of  **p**

*val nth* :  **'a Eliom\_content.Svg.elt -\> int -\> 'b Eliom\_content.Svg.elt option**

**nth e n** returns the nth child of  **e** (first is 0)

*val childLength* :  **'a Eliom\_content.Svg.elt -\> int**

**childLength e** returns the number of chilren of  **e**

*val removeChild* :  **'a Eliom\_content.Svg.elt -\> 'b Eliom\_content.Svg.elt -\> unit**

The function  **removeChild e1 e2** removes for  **e2** from the list of **e1** children.

*val replaceChild* :  **'a Eliom\_content.Svg.elt -\>** **'b Eliom\_content.Svg.elt -\> 'c Eliom\_content.Svg.elt -\> unit**

The function  **replace e1 e2 e3** replaces for  **e2** by  **e3** in the list of  **e1** children.

*val removeChildren* :  **'a Eliom\_content.Svg.elt -\> unit**

The function  **removeChildren e1** removes  **e1** children.

*val removeSelf* :  **'a Eliom\_content.Svg.elt -\> unit**

**removeSelf e** removes element e from the DOM.

*val replaceChildren* :  **'a Eliom\_content.Svg.elt -\> 'b Eliom\_content.Svg.elt list -\> unit**

The function  **replaceChildren e1 elts** replaces all the children of **e1** by  **elt** .

*module Named :* **sig end**

Dom manipulation by element identifier.

*module Class :* **sig end**
