NodeOperation

NodeOperation

Methods

addChild(el)

Source:
Create a child node.
Example
addChild(E('bd4313fbac40284b'))
Parameters:
Name Type Description
el TargetElement Target element return by E('...'), default value: currentTarget.

beginEdit(el)

Source:
Begin to edit the target node.
Example
beginEdit(E('bd4313fbac40284b'))
Parameters:
Name Type Description
el TargetElement Target element return by E('...'), default value: currentTarget.

insertSibling(el, node)

Source:
Create a sibling node.
Example
insertSibling(E('bd4313fbac40284b'))
Parameters:
Name Type Description
el TargetElement Target element return by E('...'), default value: currentTarget.
node node New node information.

moveDownNode(el)

Source:
Move the target node down.
Example
moveDownNode(E('bd4313fbac40284b'))
Parameters:
Name Type Description
el TargetElement Target element return by E('...'), default value: currentTarget.

moveNode(from, to)

Source:
Move the target node to another node (as child node).
Example
moveNode(E('bd4313fbac402842'),E('bd4313fbac402839'))
Parameters:
Name Type Description
from TargetElement The target you want to move.
to TargetElement The target(as parent node) you want to move to.

moveUpNode(el)

Source:
Move the target node up.
Example
moveUpNode(E('bd4313fbac40284b'))
Parameters:
Name Type Description
el TargetElement Target element return by E('...'), default value: currentTarget.

removeNode(el)

Source:
Remove the target node.
Example
removeNode(E('bd4313fbac40284b'))
Parameters:
Name Type Description
el TargetElement Target element return by E('...'), default value: currentTarget.