MCPcopy Create free account
hub / github.com/angular-rust/yew-components / document

Function document

src/drawer.rs:235–239  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

233}
234
235fn document() -> web_sys::Document {
236 window()
237 .document()
238 .expect("should have a document on window")
239}
240
241fn body() -> web_sys::HtmlElement {
242 document().body().expect("document should have a body")

Callers 1

bodyFunction · 0.85

Calls 1

windowFunction · 0.85

Tested by

no test coverage detected