Home Reference Source
import {Node} from './vgui/10-node.js'
public class | source

Node

Direct Subclass:

Element

Represents a placeholder for a more specific Node type Should not be used directly

Constructor Summary

Public Constructor
public

constructor(id: *)

Creates a Node with a given VPANEL id

Member Summary

Public Members
public get

Returns the children of this node

public get

Returns a Node that is the parent of this node.

Method Summary

Public Methods
public

toString(): *

Returns a string representation of the Node

Public Constructors

public constructor(id: *) source

Creates a Node with a given VPANEL id

Params:

NameTypeAttributeDescription
id *

Public Members

public get childNodes: * source

Returns the children of this node

public get parentNode: * source

Returns a Node that is the parent of this node. If there is no such node, like if this node is the top of the tree or if doesn't participate in a tree, this property returns null.

Public Methods

public toString(): * source

Returns a string representation of the Node

Return:

*