Foundry Virtual Tabletop - API Documentation - Version 14
    Preparing search index...

    Class default

    ProseMirror implementation of the HTML disclosure widget.

    Index

    Constructors

    Properties

    Accessors

    Methods

    Constructors

    • Parameters

      • node: Node

        The node this view represents.

      • view: EditorView

        The parent EditorView.

      • getPos: () => number

        A function that returns the node's current position.

      Returns default

    Properties

    contentDOM: HTMLDetailsElement

    The DOM node to render the document node's children into.

    dom: HTMLDetailsElement

    The outer DOM node that represents the document node.

    getPos: () => number

    A function that returns the node's current position.

    Accessors

    • get nodes(): Record<string, NodeSpec>

      Return the specs for the disclosure widget nodes.

      Returns Record<string, NodeSpec>

    Methods

    • When the EditorView updates itself, determine if this view can update to the given node.

      Parameters

      • node: Node

        The node.

      Returns boolean

    • Static instantiator function for the NodeView that can be passed to a new EditorView.

      Parameters

      • node: Node

        The node this view represents.

      • view: EditorView

        The parent EditorView.

      • getPos: () => number

        A function that returns the node's current position.

      Returns default