[][src]Crate seed

See readme for details.

Re-exports

pub use crate::app::App;
pub use crate::app::AppBuilder;
pub use crate::browser::dom::cast::to_html_el;
pub use crate::browser::dom::cast::to_input;
pub use crate::browser::dom::cast::to_kbevent;
pub use crate::browser::dom::cast::to_mouse_event;
pub use crate::browser::dom::cast::to_select;
pub use crate::browser::dom::cast::to_textarea;
pub use crate::browser::service::fetch;
pub use crate::browser::service::fetch::Method;
pub use crate::browser::service::fetch::Request;
pub use crate::browser::service::fetch::ResponseDataResult;
pub use crate::browser::service::fetch::ResponseResult;
pub use crate::browser::service::routing::push_route;
pub use crate::browser::service::storage;
pub use crate::browser::url::Url;
pub use crate::browser::util;
pub use crate::browser::util::body;
pub use crate::browser::util::canvas;
pub use crate::browser::util::canvas_context_2d;
pub use crate::browser::util::cookies;
pub use crate::browser::util::document;
pub use crate::browser::util::error;
pub use crate::browser::util::history;
pub use crate::browser::util::html_document;
pub use crate::browser::util::log;
pub use crate::browser::util::update;
pub use crate::browser::util::window;
pub use crate::virtual_dom::attrs::Attrs;
pub use crate::virtual_dom::listener::Listener;
pub use crate::virtual_dom::style::Style;

Modules

app
browser
dom_entity_names
prelude

Introduce El and Tag into the global namespace for convenience (El will be repeated often in the output type of components), and UpdateEl, which is required for element-creation macros, input event constructors, and the History struct. Expose the wasm_bindgen prelude, and lifecycle hooks.

shortcuts

This file exports helper macros for element creation, populated by a higher-level macro, and macros for creating the parts of elements. (attrs, style, events)

virtual_dom

Macros

Script
a
abbr
address
altGlyph
altGlyphDef
altGlyphItem
animate
animateColor
animateMotion
animateTransform
applet
area
article
aside
attrs

Provide a shortcut for creating attributes.

audio
b
bdi
bdo
blockquote
br
button
canvas
caption
circle
cite
class

Convenience macro. Ideal when there are multiple classes, and no other attrs.

clipPath
code
col
colgroup
content
cursor
custom
data
datalist
dd
defs
del
desc
details
dfn
dialog
dir
discard
div
dl
dt
element
ellipse
em
embed
empty
error

Similar to log!

feBlend
feColorMatrix
feComponentTransfer
feComposite
feConvolveMatrix
feDiffuseLighting
feDisplacementMap
feDropShadow
feFlood
feFuncA
feFuncB
feFuncG
feFuncR
feGaussianBlur
feImage
feMerge
feMergeNode
feMorphology
feOffset
feSpecularLighting
feTile
feTurbulence
fieldset
figcaption
figure
filter
font
footer
foreignObject
form
g
glyph
glyphRef
h1
h2
h3
h4
h5
h6
hatch
hatchpath
header
hgroup
hkern
hr
i
id

Convenience macro, for brevity.

iframe
image
img
input
ins
kbd
key_value_pairs

A key-value pairs, where the keys and values must implement ToString.

label
legend
li
line_
linear_gradient
log

A convenience function for logging to the web browser's console. We use a macro to supplement the log function to allow multiple inputs.

main
map
mark
marker
mask
md
menu
menuitem
mesh
meshPatch
mesh_gradient
meshrow
metadata
meter
mpath
nav
noembed
noscript
object
ol
optgroup
option
output
p
param
path
pattern
picture
plain
polygon
polyline
pre
progress
q
radial_gradient
raw
rb
rect
rp
rt
rtc
ruby
s
samp
section
select
set
shadow
slot
small
solidcolor
source
span
stop
strong
style

Provide a shortcut for creating styles.

sub
summary
sup
svg
switch
symbol
table
tbody
td
template
text
textPath
textarea
tfoot
th
thead
time
title
tr
track
tref
tspan
tt
u
ul
unit
unknown
use
var
video
view
vkern
wbr

Functions

empty

Create an element flagged in a way that it will not be rendered. Useful in ternary operations.

set_interval

A high-level wrapper for web_sys::window.set_interval_with_callback_and_timeout_and_arguments_0:

set_timeout

See set_interval