@nextcloud/dialogs
    Preparing search index...

    Interface HTMLCollectionOf<T>

    The HTMLCollection interface represents a generic collection (array-like object similar to Functions/arguments) of elements (in document order) and offers methods and properties for selecting from the list.

    MDN Reference

    interface HTMLCollectionOf<T extends Element> {
        length: number;
        item(index: number): null | T;
        namedItem(name: string): null | T;
        [index: number]: T;
    }

    Type Parameters

    Hierarchy (View Summary)

    Indexable

    • [index: number]: T
    Index

    Properties

    Methods

    Properties

    length: number

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

    MDN Reference

    Methods

    • The HTMLCollection method item() returns the element located at the specified offset into the collection.

      MDN Reference

      Parameters

      • index: number

      Returns null | T

    • Parameters

      • name: string

      Returns null | T