Function perspective::js_define_web_components
source · [−]pub fn js_define_web_components()Expand description
Register this crate’s Custom Elements in the browser’s current session.
This must occur before calling any public API methods on these Custom
Elements from JavaScript, as the methods themselves won’t be defined yet.
By default, this crate does not register PerspectiveViewerElement (as to
preserve backwards-compatible synchronous API).