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§

source

fn attach_shadow_children<N>( self, children: impl IntoIterator<Item = N> + 'static ) -> Self
where N: Into<Node<D>>,

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.

See MDN Documentation

Object Safety§

This trait is not object safe.

Implementors§