Trails Packages
Preparing search index...
@open-pioneer/test-utils
web-components
renderComponent
Function renderComponent
renderComponent
(
component
:
string
|
CustomElementConstructor
,
options
?:
{
attributes
?:
Record
<
string
,
string
>
;
container
?:
HTMLElement
}
,
)
:
Promise
<
{
node
:
HTMLElement
}
>
Renders the given component into the DOM and returns the new node.
Parameters
component
:
string
|
CustomElementConstructor
Optional
options
:
{
attributes
?:
Record
<
string
,
string
>
;
container
?:
HTMLElement
}
Returns
Promise
<
{
node
:
HTMLElement
}
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
Trails Packages
Loading...
Renders the given component into the DOM and returns the new node.