Options
All
  • Public
  • Public/Protected
  • All
Menu

Class GUIRoot

This is a DLocRoot class customized for use to mark the root of the GUI tree.

Hierarchy

Index

Constructors

Properties

Methods

Constructors

constructor

Properties

node

Methods

nodeToPath

  • nodeToPath(node: Node): string
  • Converts a node to a path suitable to be used by the "wed/dloc".DLocRoot.pathToNode method so long as the root used is the one for the data tree corresponding to the GUI tree to which this object belongs.

    Parameters

    • node: Node

      The node for which to construct a path.

    Returns string

    The path.

pathToNode

  • pathToNode(path: string): Node | null
  • This function recovers a DOM node on the basis of a path previously created by "wed/dloc".DLocRoot.nodeToPath provided that the root from which the path was obtained is on the data tree which corresponds to the GUI tree that this root was created for.

    throws

    {Error} If given a malformed path.

    Parameters

    • path: string

      The path to interpret.

    Returns Node | null

    The node corresponding to the path, or null if no such node exists.

Generated using TypeDoc