web_component::prelude

Crate document

Source

Structs§

Enums§

Traits§

  • A provider for document-related functionality.
  • The platform’s evaluator.

Functions§

  • Render a link tag into the head of the page.
  • Render a meta tag into the head of the page.
  • Render a script tag into the head of the page.
  • Render a style tag into the head of the page.
  • Render a link tag into the head of the page with the stylesheet rel. This is equivalent to the Link component with a slightly more ergonomic API.
  • 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.
  • Get the document provider for the current platform or a no-op provider if the platform doesn’t document functionality.
  • Evaluate some javascript in the current document

Type Aliases§