Trilium Frontend API
    Preparing search index...

    Interface NodeList

    NodeList objects are collections of nodes, usually returned by properties such as Node.childNodes and methods such as document.querySelectorAll().

    MDN Reference

    interface NodeList {
        length: number;
        "[iterator]"(): ArrayIterator<Node>;
        entries(): ArrayIterator<[number, Node]>;
        forEach(
            callbackfn: (value: Node, key: number, parent: NodeList) => void,
            thisArg?: any,
        ): void;
        item(index: number): Node;
        keys(): ArrayIterator<number>;
        values(): ArrayIterator<Node>;
        [index: number]: Node;
    }

    Hierarchy (View Summary)

    Indexable

    • [index: number]: Node
    Index

    Properties

    length: number

    The NodeList.length property returns the number of items in a NodeList.

    MDN Reference

    Methods

    • Returns an array of key, value pairs for every entry in the list.

      Returns ArrayIterator<[number, Node]>

    • Parameters

      • callbackfn: (value: Node, key: number, parent: NodeList) => void
      • OptionalthisArg: any

      Returns void

    • Returns a node from a NodeList by index. This method doesn't throw exceptions as long as you provide arguments. A value of null is returned if the index is out of range, and a TypeError is thrown if no argument is provided.

      MDN Reference

      Parameters

      • index: number

      Returns Node

    • Returns an list of keys in the list.

      Returns ArrayIterator<number>