@nextcloud/dialogs
    Preparing search index...

    Interface HTMLAllCollection

    The HTMLAllCollection interface represents a collection of all of the document's elements, accessible by index (like an array) and by the element's id.

    MDN Reference

    interface HTMLAllCollection {
        length: number;
        item(nameOrIndex?: string): null | Element | HTMLCollection;
        namedItem(name: string): null | Element | HTMLCollection;
        [index: number]: Element;
    }

    Indexable

    Index

    Properties

    Methods

    Properties

    length: number

    The HTMLAllCollection.length property returns the number of items in this HTMLAllCollection.

    MDN Reference

    Methods

    • The item() method of the HTMLAllCollection interface returns the element located at the specified offset into the collection, or the element with the specified value for its id or name attribute.

      MDN Reference

      Parameters

      • OptionalnameOrIndex: string

      Returns null | Element | HTMLCollection

    • The namedItem() method of the HTMLAllCollection interface returns the first Element in the collection whose id or name attribute matches the specified name, or null if no element matches.

      MDN Reference

      Parameters

      • name: string

      Returns null | Element | HTMLCollection