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,): null | EType ParametersE extends Element = HTMLElementParametersstartnode: QuerySelectorAbleselector: stringReturns null | EqS<E extends Element = HTMLElement>(selector: string): null | EType ParametersE extends Element = HTMLElementParametersselector: stringReturns null | ESettingsMember 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