[][src]Module seed::dom_types

This module contains structs and enums that represent dom types, and their parts. These are the types used internally by our virtual dom.

Re-exports

pub use values::*;

Modules

values

Structs

Attrs

A thinly-wrapped HashMap holding DOM attributes

DidMount
DidUpdate
El

A component in our virtual DOM. MDN reference web_sys reference

LifecycleHooks
Style

Handle Style separately from Attrs, since it commonly involves multiple parts, and has a different semantic meaning.

Text

For representing text nodes. MDN reference web_sys reference

WillUnmount

Enums

At

The At enum restricts element-creation to only valid event names, as defined here: https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes

Namespace

Common Namespaces

Node

A component in our virtual DOM. MDN reference web_sys reference

Tag

The Tag enum restricts element-creation to only valid tags, as defined here: https://developer.mozilla.org/en-US/docs/Web/HTML/Element

Traits

MessageMapper
UpdateEl

UpdateEl is used to distinguish arguments in element-creation macros, and handle each type appropriately.

View

Functions

did_mount

A constructor for DidMount, to be used in the API

did_update

A constructor for DidUpdate, to be used in the API

will_unmount

A constructor for WillUnmount, to be used in the API