@wopjs/dom - v0.1.3
Preparing search index...
querySelector
Function querySelector
querySelector
<
K
extends
keyof
HTMLElementTagNameMap
>
(
selectors
:
K
,
parentNode
?:
ParentNode
,
)
:
null
|
HTMLElementTagNameMap
[
K
]
Returns the first element that is a descendant of node that matches selectors.
Type Parameters
K
extends
keyof
HTMLElementTagNameMap
Parameters
selectors
:
K
Optional
parentNode
:
ParentNode
Returns
null
|
HTMLElementTagNameMap
[
K
]
querySelector
<
K
extends
keyof
SVGElementTagNameMap
>
(
selectors
:
K
,
parentNode
?:
ParentNode
,
)
:
null
|
SVGElementTagNameMap
[
K
]
Returns the first element that is a descendant of node that matches selectors.
Type Parameters
K
extends
keyof
SVGElementTagNameMap
Parameters
selectors
:
K
Optional
parentNode
:
ParentNode
Returns
null
|
SVGElementTagNameMap
[
K
]
querySelector
<
E
extends
Element
=
Element
>
(
selectors
:
string
,
parentNode
?:
ParentNode
,
)
:
null
|
E
Returns the first element that is a descendant of node that matches selectors.
Type Parameters
E
extends
Element
=
Element
Parameters
selectors
:
string
Optional
parentNode
:
ParentNode
Returns
null
|
E
Settings
Theme
OS
Light
Dark
@wopjs/dom - v0.1.3
Loading...
Returns the first element that is a descendant of node that matches selectors.