a11y-toolkit
    Preparing search index...

    Class DOMOrderElementList

    An ElementList that ensures the elements remain in order of appearance in the DOM.

    Note: this does not watch the DOM tree, it only updates the order when elements are added or the consumer instructs the DOMOrderElementList to update.

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    "[toStringTag]": string
    container: Elemental
    elements: Elemental[]
    size: number

    the number of (unique) elements in Set.

    "[species]": SetConstructor

    Methods

    • Iterates over values in the set.

      Returns SetIterator<Elemental>

    • Type Parameters

      • U

      Parameters

      • other: ReadonlySetLike<U>

      Returns Set<Elemental>

      a new Set containing all the elements in this Set which are not also in the argument.

    • Executes a provided function once per each value in the Set object, in insertion order.

      Parameters

      Returns void

    • Parameters

      Returns boolean

      a boolean indicating whether an element with the specified value exists in the Set or not.

    • Type Parameters

      • U

      Parameters

      • other: ReadonlySetLike<U>

      Returns Set<Elemental & U>

      a new Set containing all the elements which are both in this Set and in the argument.

    • Parameters

      • other: ReadonlySetLike<unknown>

      Returns boolean

      a boolean indicating whether this Set has no elements in common with the argument.

    • Parameters

      • other: ReadonlySetLike<unknown>

      Returns boolean

      a boolean indicating whether all the elements in this Set are also in the argument.

    • Parameters

      • other: ReadonlySetLike<unknown>

      Returns boolean

      a boolean indicating whether all the elements in the argument are also in this Set.

    • Despite its name, returns an iterable of the values in the set.

      Returns SetIterator<Elemental>

    • Type Parameters

      • U

      Parameters

      • other: ReadonlySetLike<U>

      Returns Set<Elemental | U>

      a new Set containing all the elements which are in either this Set or in the argument, but not in both.

    • Type Parameters

      • U

      Parameters

      • other: ReadonlySetLike<U>

      Returns Set<Elemental | U>

      a new Set containing all the elements in this Set and also all the elements in the argument.

    • Updates the order of elements in the ElementList to match their order in the DOM.

      Automatically called anytime an element is added.

      Returns void

    • Returns an iterable of values in the set.

      Returns SetIterator<Elemental>