lib-tree

lib-tree

Source:

Members

(static, constant) RelationshipTypes :string

Relationship types used for calling FindRelative().

Source:
Properties:
Name Type Description
PrevNode string
NextNode string
FirstNode string
LastNode string
RootNode string
ParentNode string
PrevSibNode string
NextSibNode string
FirstSibNode string
LastSibNode string
FirstChildNode string
LastChildNode string
FirstDescNode string
LastDescNode string

RelationshipTypes

Type:
  • string

(static, constant) VisitationTypes :string

Visitation types used for calling VisitNodes().

Source:
Properties:
Name Type Description
AllNodes string
PrevNodes string
NextNodes string
ParentNodes string
SiblingNodes string
PrevSibNodes string
NextSibNodes string
ChildNodes string
DescendantNodes string

VisitationTypes

Type:
  • string

Methods

(static) AsNode(Itemopt) → (non-null) {Object}

Creates a root node.

Source:
Parameters:
Name Type Attributes Default Description
Item Object <optional>
Object

The data item of the node. If Item is not an object, a new Item object will be created with a Data property containing the passed in value.

Returns:

The data item with an added Node member.

Type
Object

(static) IsNode(Itemopt) → {boolean}

Determines if an item is a node.

Source:
Parameters:
Name Type Attributes Description
Item Object <optional>

The data item to inspect.

Returns:

Returns true if Item is a node, otherwise false.

Type
boolean