Function queryThroughShadow
- queryThroughShadow(element, query, options): Element[]
Parameters
- element: Element | ShadowRoot
- query: string | {
tagName: string;
} - options: {
all: true;
}
Returns Element[]
- queryThroughShadow(element, query, options?): Element | undefined
Parameters
- element: Element | ShadowRoot
- query: string | {
tagName: string;
} Optional
options: {
all?: false;
}
Returns Element | undefined
- queryThroughShadow(element, query, options?): 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