@laserware/dominator
    Preparing search index...

    Function findAllElements

    • Query the DOM to find the elements matching the specified CSS selector in the optionally specified parent.

      Type Parameters

      Parameters

      • selector: string

        CSS selector string to find the elements.

      • Optionalparent: null | ElementLike

        Optional Element or EventTarget for parent.

      Returns E[]

      Array of elements of type E if found, otherwise empty array.

      SyntaxError if the specified selector is invalid.

    • Query the DOM using one of the specified options and find the elements that match the criteria in the options object in the optionally specified parent.

      Type Parameters

      Parameters

      • options: FindOptions

        Options for finding the elements.

        Use to specify search criteria for finding element(s). You can find elements by selector, dataset entries, or attributes.

        To search for the existence of an attribute or dataset property (not the value), set the value to null.

        • Optionalparent?: Target | null

          Optional parent Element, EventTarget, or CSS selector.

        • OptionaltagName?: TagName | string

          Optional element tag name to limit search.

        • OptionalwithAttributes?: Attributes<E> | AttributeName[] | AttributeName

          Key/value pairs of attributes to search for.

        • OptionalwithDataset?: Dataset | DatasetKey[] | DatasetKey

          Key/value pairs of dataset entries to search for.

        • OptionalwithSelector?: CssSelector

          CSS selector search string.

      Returns E[]

      Array of elements of type E if found, otherwise empty array.

      SyntaxError if withSelector in the specified options is invalid.

      TypeError if the specified options are invalid.