@nextcloud/dialogs
    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;
        forEach(
            callbackfn: (value: Node, key: number, parent: NodeList) => void,
            thisArg?: any,
        ): void;
        item(index: number): null | Node;
        [index: number]: Node;
    }

    Hierarchy (View Summary)

    Indexable

    • [index: number]: Node
    Index

    Properties

    Methods

    Properties

    length: number

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

    MDN Reference

    Methods

    • Parameters

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

      Returns void

    • Returns a node from a NodeList by index.

      MDN Reference

      Parameters

      • index: number

      Returns null | Node