An object that handles links on a node.

interface ILinkHandler {
    handleLink(node, path, id?): void;
    handlePath?(node, path, scope, id?): void;
}

Methods

  • Add the link handler to the node.

    Parameters

    • node: HTMLElement

      the anchor node for which to handle the link.

    • path: string

      the path to open when the link is clicked.

    • Optional id: string

      an optional element id to scroll to when the path is opened.

    Returns void

  • Add the path handler to the node.

    Parameters

    • node: HTMLElement

      the anchor node for which to handle the link.

    • path: string

      the path to open when the link is clicked.

    • scope: "kernel" | "server"

      the scope to which the path is bound.

    • Optional id: string

      an optional element id to scroll to when the path is opened.

    Returns void