Function queryThroughShadow
- queryThroughShadow(
element: Element | ShadowRoot,
query: string | { tagName: string },
options: { all: true },
): Element[] Parameters
- element: Element | ShadowRoot
- query: string | { tagName: string }
- options: { all: true }
Returns Element[]
- queryThroughShadow(
element: Element | ShadowRoot,
query: string | { tagName: string },
options?: { all?: false },
): Element | undefined Parameters
- element: Element | ShadowRoot
- query: string | { tagName: string }
Optional
options: { all?: false }
Returns Element | undefined
- queryThroughShadow(
element: Element | ShadowRoot,
query: string | { tagName: string },
options?: PartialWithUndefined<{ all: boolean }>,
): Element | Element[] | undefined Parameters
- element: Element | ShadowRoot
- query: string | { tagName: string }
Optional
options: PartialWithUndefined<{ all: boolean }>
Returns Element | Element[] | undefined
Perform
.querySelector()
on the given element with support for elements that contain an open Shadow Root.Package
@augment-vir/web