qS | WebHare Platform SDKWebHare Platform SDKPreparing search index...@webhare/dompackqSFunction qSMatch the first element using a CSS selector Param: node_or_selectorThe starting node or selector Param: selectorThe selector to match if the starting node was specified ReturnsThe first matching element or null qS<E extends Element = HTMLElement>( startnode: QuerySelectorAble, selector: string,): E | nullType ParametersE extends Element = HTMLElementParametersstartnode: QuerySelectorAbleselector: stringReturns E | nullqS<E extends Element = HTMLElement>(selector: string): E | nullType ParametersE extends Element = HTMLElementParametersselector: stringReturns E | nullSettingsMember VisibilityProtectedInheritedThemeOSLightDarkWebHare Platform SDKLoading...
Match the first element using a CSS selector
Param: node_or_selector
The starting node or selector
Param: selector
The selector to match if the starting node was specified
Returns
The first matching element or null