Structs§
- Eval
- Communicating with JavaScript
- Link
Props - Meta
Props - Props for the
Metacomponent - NoOp
Document - A document that does nothing
- Script
Props - Style
Props - Title
Props
Enums§
- Eval
Error - Represents an error when evaluating JavaScript
- Extract
Single Text Node Error - An error that can occur when extracting a single text node from a component
Traits§
Functions§
- Link
- Render a
linktag into the head of the page. - Meta
- Render a
metatag into the head of the page. - Script
- Render a
scripttag into the head of the page. - Style
- Render a
styleorlinktag into the head of the page. - Stylesheet
- Render a
linktag into the head of the page with the stylesheet rel. This is equivalent to theLinkcomponent with a slightly more ergonomic API. - Title
- Render the title of the page. On web renderers, this will set the title in the head. On desktop, it will set the window title.
- create_
element_ in_ head - Create a new element in the head with javascript through the
Document::evalmethod - document
- Get the document provider for the current platform or a no-op provider if the platform doesn’t document functionality.
- eval
- Evaluate some javascript in the current document
Type Aliases§
- Document
Context - A context for the document