pub fn inject_stylesheet(this: &HtmlElement, url: &str)
Expand description

Attaches a <link rel="stylesheet"> element with the given URL to the custom element, either to its shadow root (if it exists) or to the custom element itself.

This is an optional helper function; if you use it, you probably want it somewhere in your inject_children function.