Trait silkenweb::node::element::ShadowRootParent
source · pub trait ShadowRootParent<D: InstantiableDom = DefaultDom>: Element {
// Required method
fn attach_shadow_children<N>(
self,
children: impl IntoIterator<Item = N> + 'static
) -> Self
where N: Into<Node<D>>;
}
Expand description
An element that can be a shadow host.
Required Methods§
sourcefn attach_shadow_children<N>(
self,
children: impl IntoIterator<Item = N> + 'static
) -> Self
fn attach_shadow_children<N>( self, children: impl IntoIterator<Item = N> + 'static ) -> Self
Attach an open shadow root to self
and add children
to it.
If there’s already a shadow root, the children
are appended to it.
Object Safety§
This trait is not object safe.