Last updated

API / geotoolkit / report / dom / NodeList / NodeList

Class: NodeList<T>

dom.NodeList.NodeList

The NodeList interface represents an iterable collection of Node objects.

Type parameters

Name
T

Table of contents

Constructors
Accessors
Methods

Contents

Constructors

new NodeList&lt;T&amp;gt;(nodeList)

new NodeList<T>(nodeList?)

Type parameters

Name
T

Parameters

Name Type Description
Optional nodeListT[]list of nodes
Accessors

length

get length(): number

Returns the amount of objects in the map.

Name

module:geotoolkit/report/dom/NodeList~NodeList#length

Returns

number

Methods

[iterator]

[iterator](): Object

Returns

Object

NameType
next() => { done: boolean ; value: T }

indexOf

indexOf(node): number

Returns index of node.

Parameters

Name Type Description
nodeTitem to get index of

Returns

number


item

item(index): T

Returns the Node at the given index, or null if the index is higher or equal to the number of nodes.

Parameters

Name Type Description
indexnumberof named item

Returns

T


removeChild

removeChild(child): NodeList<T>

Remove child node from container

Parameters

Name Type Description
childTchild to remove

Returns

NodeList<T>

this