MCPcopy Create free account
hub / github.com/DioxusLabs/dioxus / create_script

Method create_script

packages/native/src/contexts.rs:52–55  ·  view source on GitHub ↗
(&self, props: dioxus_document::ScriptProps)

Source from the content-addressed store, hash-verified

50 }
51
52 fn create_script(&self, props: dioxus_document::ScriptProps) {
53 let attributes = props.attributes();
54 self.create_head_element("script", &attributes, props.script_contents().ok());
55 }
56
57 fn create_style(&self, props: dioxus_document::StyleProps) {
58 let attributes = props.attributes();

Callers

nothing calls this directly

Calls 4

script_contentsMethod · 0.80
attributesMethod · 0.45
create_head_elementMethod · 0.45
okMethod · 0.45

Tested by

no test coverage detected