new objInit(id, parent, children, depth, name, tag, type, value, extra)
Creates an object out of information about the node
Parameters:
Name | Type | Description |
---|---|---|
id |
number | id of the node. |
parent |
number | id of node's parent. |
children |
array | ids of node's children. |
depth |
number | Depth at which the node is aligned. |
name |
string | Node name. |
tag |
string | Node tag. |
type |
string | Node type. |
value |
string | Node value. |
extra |
string | Extra information about the node. |
- Source: