[−][src]Module sauron::prelude
reexport prelude from sauron core
Modules
dom | This module provides functionalities for manipulating the actual Document Object Model in the browser |
html | Provides functions and macros to build html elements |
js_sys | Bindings to JavaScript's standard, built-in objects, including their methods and properties. |
jss | json css |
mt_dom | mt-dom is a generic virtual dom implementation which doesn't specify the types of the data that is being processed. It's up to the library user to specify those types |
serde_json | Serde JSON |
svg | Provides functions and macros to build svg elements |
units | provides function and macro for html units such as px, %, em, etc. |
wasm_bindgen | Runtime support for the |
web_sys | Raw API bindings for Web APIs |
Macros
declare_attributes | declare a function with the name corresponds to attribute name for easy usage in html elements Example: |
jss | jss macro |
jss_ns | jss with namespace |
node | Quasi-quoting macro for building sauron Nodes. |
style | a utility function for convenient styling of elements |
text | creates a text node Example |
Structs
AnimationEvent | The |
Browser | provides an interface for doing url request, such as fetch resize events, keyboard event, timeout event |
Closure | A handle to both a closure in Rust as well as JS closure which will invoke the Rust closure. |
CreatedNode | A node along with all of the closures that were created for that node's events and all of it's child node's events. |
DomUpdater | Used for keeping a real DOM node up to date based on the current Node and a new incoming Node that represents our latest DOM state. |
HashChangeEvent | The |
Http | Provides functions for doing http network request |
InputEvent | a custom InputEvent to contain the input string value |
JsValue | Representation of an object owned by JS. |
KeyboardEvent | The |
MouseEvent | The |
Program | Holds the user App and the dom updater This is passed into the event listener and the dispatch program will be called after the event is triggered. |
Style | css styles style can be converted into an attribute ie: |
Text | Text node |
TransitionEvent | The |
Window | Provides access to the Browser window |
Enums
AttributeValue | Values of an attribute can be in these variants |
Value | TODO: merge this with AttributeValue Value is an abstraction of the values used in the actual backend. Html and gtk-rs have different set of compatible values therefore a need for a storage of these intermediate value is needed |
Constants
HTML_EVENTS | html events |
Traits
Component | The app should implement this trait for it to be handled by the Program |
Dispatch | This trait is used in the DomUpdater to call the dispatch method when an event occured |
Render | render node, elements to a writable buffer |
Special | Special Node attributes that are treated differently such as key and skip which both greatly affects the diffing algorithm |
UnwrapThrowExt | An extension trait for |
Functions
a | Creates an html a element |
abbr | Creates an html abbr element |
accent_height | Creates html accent-height attribute |
accept | Creates html accept attribute |
accept_charset | Creates html accept-charset attribute |
accesskey | Creates html accesskey attribute |
accumulate | Creates html accumulate attribute |
action | Creates html action attribute |
additive | Creates html additive attribute |
address | Creates an html address element |
align | Creates html align attribute |
alignment_baseline | Creates html alignment-baseline attribute |
allow | Creates html allow attribute |
allowReorder | Creates html allowReorder attribute |
alphabetic | Creates html alphabetic attribute |
alt | Creates html alt attribute |
amplitude | Creates html amplitude attribute |
animate | Creates an svg animate element |
animateMotion | Creates an svg animateMotion element |
animateTransform | Creates an svg animateTransform element |
arabic_form | Creates html arabic-form attribute |
area | Creates an html area element |
article | Creates an html article element |
ascent | Creates html ascent attribute |
aside | Creates an html aside element |
async | Creates html async attribute |
async_ | Creates html async attribute |
attr | a utility function to convert simple value into attribute |
attributeName | Creates html attributeName attribute |
attributeType | Creates html attributeType attribute |
attrs_flag | A helper function for setting attributes with no values such as checked in checkbox input type This is best called to be appended to the node since this returns an array of attributes which doesn't play well with the others Example: |
audio | Creates an html audio element |
autoReverse | Creates html autoReverse attribute |
autocapitalize | Creates html autocapitalize attribute |
autocomplete | Creates html autocomplete attribute |
autofocus | Creates html autofocus attribute |
autoplay | Creates html autoplay attribute |
azimuth | Creates html azimuth attribute |
b | Creates an html b element |
background | Creates html background attribute |
base | Creates an html base element |
baseFrequency | Creates html baseFrequency attribute |
baseProfile | Creates html baseProfile attribute |
baseline_shift | Creates html baseline-shift attribute |
bbox | Creates html bbox attribute |
bdi | Creates an html bdi element |
bdo | Creates an html bdo element |
begin | Creates html begin attribute |
bgcolor | Creates html bgcolor attribute |
bias | Creates html bias attribute |
blockquote | Creates an html blockquote element |
border | Creates html border attribute |
br | Creates an html br element |
buffered | Creates html buffered attribute |
button | Creates an html button element |
by | Creates html by attribute |
calcMode | Creates html calcMode attribute |
canvas | Creates an html canvas element |
cap_height | Creates html cap-height attribute |
caption | Creates an html caption element |
ch | Relative to the width of the "0" (zero) |
challenge | Creates html challenge attribute |
charset | Creates html charset attribute |
checked | set the checked value, used checkbox and radio buttons |
circle | Creates an svg circle element |
class | Creates html class attribute |
classes | a helper function to add multiple classes to a node |
classes_flag | |
clip | Creates html clip attribute |
clipPath | Creates an svg clipPath element |
clipPathUnits | Creates html clipPathUnits attribute |
clip_path | Creates html clip-path attribute |
clip_rule | Creates html clip-rule attribute |
cm | centimeters |
code | Creates an html code element |
codebase | Creates html codebase attribute |
col | Creates an html col element |
colgroup | Creates an html colgroup element |
color_interpolation | Creates html color-interpolation attribute |
color_interpolation_filters | Creates html color-interpolation-filters attribute |
color_profile | Creates html color-profile attribute |
color_rendering | Creates html color-rendering attribute |
cols | Creates html cols attribute |
colspan | Creates html colspan attribute |
command | Creates an html command element |
content | Creates html content attribute |
contentScriptType | Creates html contentScriptType attribute |
contentStyleType | Creates html contentStyleType attribute |
contenteditable | Creates html contenteditable attribute |
contextmenu | Creates html contextmenu attribute |
controls | Creates html controls attribute |
coords | Creates html coords attribute |
crossorigin | Creates html crossorigin attribute |
csp | Creates html csp attribute |
cursor | Creates html cursor attribute |
cx | Creates html cx attribute |
cy | Creates html cy attribute |
d | Creates html d attribute |
datalist | Creates an html datalist element |
datetime | Creates html datetime attribute |
dd | Creates an html dd element |
decelerate | Creates html decelerate attribute |
decoding | Creates html decoding attribute |
default | Creates html default attribute |
defer | Creates html defer attribute |
defs | Creates an svg defs element |
del | Creates an html del element |
desc | Creates an svg desc element |
descent | Creates html descent attribute |
details | Creates an html details element |
dfn | Creates an html dfn element |
dialog | Creates an html dialog element |
diff | This is a sauron html specific functionality
diff 2 nodes with attribute using |
diffuseConstant | Creates html diffuseConstant attribute |
dir | Creates html dir attribute |
direction | Creates html direction attribute |
dirname | Creates html dirname attribute |
disabled | set whether an element is disabled or not |
discard | Creates an svg discard element |
display | Creates html display attribute |
div | Creates an html div element |
divisor | Creates html divisor attribute |
dl | Creates an html dl element |
document | provides access to the document element |
dominant_baseline | Creates html dominant-baseline attribute |
download | Creates html download attribute |
draggable | Creates html draggable attribute |
dropzone | Creates html dropzone attribute |
dt | Creates an html dt element |
dur | Creates html dur attribute |
dx | Creates html dx attribute |
dy | Creates html dy attribute |
edgeMode | Creates html edgeMode attribute |
element | create a virtual node with tag, attrs and children |
element_ns | create a virtual node with namespace, tag, attrs and children |
elevation | Creates html elevation attribute |
ellipse | Creates an svg ellipse element |
embed | Creates an html embed element |
empty_attr | a utility function to return create an empty attr, useful for cases where branch expression need to return an attribute which otherwise it can not produce example: |
enable_background | Creates html enable-background attribute |
enctype | Creates html enctype attribute |
end | Creates html end attribute |
enterkeyhint | Creates html enterkeyhint attribute |
ex | Relative to the x-height of the current font (rarely used) |
execute_in_request_animation_frame | request animation frame and execute function |
exponent | Creates html exponent attribute |
externalResourcesRequired | Creates html externalResourcesRequired attribute |
feBlend | Creates an svg feBlend element |
feColorMatrix | Creates an svg feColorMatrix element |
feComponentTransfer | Creates an svg feComponentTransfer element |
feComposite | Creates an svg feComposite element |
feConvolveMatrix | Creates an svg feConvolveMatrix element |
feDiffuseLighting | Creates an svg feDiffuseLighting element |
feDisplacementMap | Creates an svg feDisplacementMap element |
feDistantLight | Creates an svg feDistantLight element |
feDropShadow | Creates an svg feDropShadow element |
feFlood | Creates an svg feFlood element |
feFuncA | Creates an svg feFuncA element |
feFuncB | Creates an svg feFuncB element |
feFuncG | Creates an svg feFuncG element |
feFuncR | Creates an svg feFuncR element |
feGaussianBlur | Creates an svg feGaussianBlur element |
feImage | Creates an svg feImage element |
feMerge | Creates an svg feMerge element |
feMergeNode | Creates an svg feMergeNode element |
feMorphology | Creates an svg feMorphology element |
feOffset | Creates an svg feOffset element |
fePointLight | Creates an svg fePointLight element |
feSpecularLighting | Creates an svg feSpecularLighting element |
feSpotLight | Creates an svg feSpotLight element |
feTile | Creates an svg feTile element |
feTurbulence | Creates an svg feTurbulence element |
fieldset | Creates an html fieldset element |
figcaption | Creates an html figcaption element |
figure | Creates an html figure element |
fill | Creates html fill attribute |
fill_opacity | Creates html fill-opacity attribute |
fill_rule | Creates html fill-rule attribute |
filterRes | Creates html filterRes attribute |
filterUnits | Creates html filterUnits attribute |
flex_direction | Creates html flex-direction attribute |
flood_color | Creates html flood-color attribute |
flood_opacity | Creates html flood-opacity attribute |
focus | focus the html element |
font_family | Creates html font-family attribute |
font_size | Creates html font-size attribute |
font_size_adjust | Creates html font-size-adjust attribute |
font_stretch | Creates html font-stretch attribute |
font_style | Creates html font-style attribute |
font_variant | Creates html font-variant attribute |
font_weight | Creates html font-weight attribute |
footer | Creates an html footer element |
for | Creates html for attribute |
for_ | Creates html for attribute |
foreignObject | Creates an svg foreignObject element |
form | Creates an html form element |
formaction | Creates html formaction attribute |
format | Creates html format attribute |
formnovalidate | Creates html formnovalidate attribute |
fr | Creates html fr attribute |
from | Creates html from attribute |
fx | Creates html fx attribute |
fy | Creates html fy attribute |
g | Creates an svg g element |
g1 | Creates html g1 attribute |
g2 | Creates html g2 attribute |
glyphRef | Creates html glyphRef attribute |
glyph_name | Creates html glyph-name attribute |
glyph_orientation_horizontal | Creates html glyph-orientation-horizontal attribute |
glyph_orientation_vertical | Creates html glyph-orientation-vertical attribute |
gradientTransform | Creates html gradientTransform attribute |
gradientUnits | Creates html gradientUnits attribute |
h1 | Creates an html h1 element |
h2 | Creates an html h2 element |
h3 | Creates an html h3 element |
h4 | Creates an html h4 element |
h5 | Creates an html h5 element |
h6 | Creates an html h6 element |
hanging | Creates html hanging attribute |
hatch | Creates an svg hatch element |
hatchpath | Creates an svg hatchpath element |
head | Creates an html head element |
header | Creates an html header element |
headers | Creates html headers attribute |
height | Creates html height attribute |
hgroup | Creates an html hgroup element |
hidden | Creates html hidden attribute |
high | Creates html high attribute |
history | utility function which returns the history api of the browser |
horiz_adv_x | Creates html horiz-adv-x attribute |
horiz_origin_x | Creates html horiz-origin-x attribute |
hr | Creates an html hr element |
href | Creates html href attribute |
html | Creates an html html element |
html_element | creates an html element, where the first argument: tag is the html element tag. Example: |
html_element_ns | creates an html element with the element tag name and namespace This is specifically used for creating svg element where a namespace is needed, otherwise the browser will not render it correctly. |
html_element_sc | for self closing tags |
http | Creates html http attribute |
i | Creates an html i element |
icon | Creates html icon attribute |
id | Creates html id attribute |
ideographic | Creates html ideographic attribute |
iframe | Creates an html iframe element |
image | Creates an svg image element |
image_rendering | Creates html image-rendering attribute |
img | Creates an html img element |
importance | Creates html importance attribute |
in2 | Creates html in2 attribute |
in_ | Creates html in attribute |
inner_html | set the inner html of this element without comparing in the diff this always sets the value This is for optimization purposes and will lead to some hacks in the implementation |
input | Creates an html input element |
inputmode | Creates html inputmode attribute |
ins | Creates an html ins element |
integrity | Creates html integrity attribute |
intercept | Creates html intercept attribute |
intrinsicsize | Creates html intrinsicsize attribute |
ismap | Creates html ismap attribute |
itemprop | Creates html itemprop attribute |
k | Creates html k attribute |
k1 | Creates html k1 attribute |
k2 | Creates html k2 attribute |
k3 | Creates html k3 attribute |
k4 | Creates html k4 attribute |
kbd | Creates an html kbd element |
kernelMatrix | Creates html kernelMatrix attribute |
kernelUnitLength | Creates html kernelUnitLength attribute |
kerning | Creates html kerning attribute |
key | key attributes is used to match old element and new element when diffing |
keyPoints | Creates html keyPoints attribute |
keySplines | Creates html keySplines attribute |
keyTimes | Creates html keyTimes attribute |
keygen | Creates an html keygen element |
keytype | Creates html keytype attribute |
kind | Creates html kind attribute |
label | Creates an html label element |
language | Creates html language attribute |
legend | Creates an html legend element |
lengthAdjust | Creates html lengthAdjust attribute |
letter_spacing | Creates html letter-spacing attribute |
li | Creates an html li element |
lighting_color | Creates html lighting-color attribute |
limitingConeAngle | Creates html limitingConeAngle attribute |
linearGradient | Creates an svg linearGradient element |
link | Creates an html link element |
list | Creates html list attribute |
loading | Creates html loading attribute |
local | Creates html local attribute |
loop | Creates html loop attribute |
loop_ | Creates html loop attribute |
low | Creates html low attribute |
main | Creates an html main element |
manifest | Creates html manifest attribute |
map | Creates an html map element |
mark | Creates an html mark element |
marker | Creates an svg marker element |
markerHeight | Creates html markerHeight attribute |
markerUnits | Creates html markerUnits attribute |
markerWidth | Creates html markerWidth attribute |
marker_end | Creates html marker-end attribute |
marker_mid | Creates html marker-mid attribute |
marker_start | Creates html marker-start attribute |
maskContentUnits | Creates html maskContentUnits attribute |
maskUnits | Creates html maskUnits attribute |
mathematical | Creates html mathematical attribute |
maxlength | Creates html maxlength attribute |
menu | Creates an html menu element |
menuitem | Creates an html menuitem element |
mesh | Creates an svg mesh element |
meshgradient | Creates an svg meshgradient element |
meshpatch | Creates an svg meshpatch element |
meshrow | Creates an svg meshrow element |
meta | Creates an html meta element |
metadata | Creates an svg metadata element |
meter | Creates an html meter element |
minlength | Creates html minlength attribute |
mm | milimeters |
mode | Creates html mode attribute |
mpath | Creates an svg mpath element |
multiple | Creates html multiple attribute |
muted | Creates html muted attribute |
nav | Creates an html nav element |
noscript | Creates an html noscript element |
novalidate | Creates html novalidate attribute |
now | return the instantaneous time |
numOctaves | Creates html numOctaves attribute |
object | Creates an html object element |
offset | Creates html offset attribute |
ol | Creates an html ol element |
on | an event builder |
on_animationend | attach an on_animationend event to the html element |
on_auxclick | attach an on_auxclick event to the html element |
on_blur | attach an on_blur event to the html element |
on_broadcast | attach an on_broadcast event to the html element |
on_change | attach an on_change event to the html element |
on_click | on click event |
on_contextmenu | attach an on_contextmenu event to the html element |
on_dblclick | attach an on_dblclick event to the html element |
on_doubleclick | attach an on_doubleclick event to the html element |
on_enter | custom on_enter event, which is triggered from key_press when the Enter key is pressed |
on_focus | attach an on_focus event to the html element |
on_hashchange | attach an on_hashchange event to the html element |
on_input | attach an on_input event to the html element |
on_keydown | attach an on_keydown event to the html element |
on_keypress | attach an on_keypress event to the html element |
on_keyup | attach an on_keyup event to the html element |
on_mousedown | attach an on_mousedown event to the html element |
on_mouseenter | attach an on_mouseenter event to the html element |
on_mouseleave | attach an on_mouseleave event to the html element |
on_mousemove | attach an on_mousemove event to the html element |
on_mouseout | attach an on_mouseout event to the html element |
on_mouseover | attach an on_mouseover event to the html element |
on_mouseup | attach an on_mouseup event to the html element |
on_pointerlockchange | attach an on_pointerlockchange event to the html element |
on_pointerlockerror | attach an on_pointerlockerror event to the html element |
on_readystatechange | attach an on_readystatechange event to the html element |
on_reset | attach an on_reset event to the html element |
on_scroll | attach callback to the scroll event |
on_select | attach an on_select event to the html element |
on_submit | attach an on_submit event to the html element |
on_transitionend | attach an on_transitionend event to the html element |
on_wheel | attach an on_wheel event to the html element |
opacity | Creates html opacity attribute |
open | Creates html open attribute |
operator | Creates html operator attribute |
optgroup | Creates an html optgroup element |
optimum | Creates html optimum attribute |
option | Creates an html option element |
order | Creates html order attribute |
orient | Creates html orient attribute |
orientation | Creates html orientation attribute |
origin | Creates html origin attribute |
output | Creates an html output element |
overflow | Creates html overflow attribute |
overline_position | Creates html overline-position attribute |
overline_thickness | Creates html overline-thickness attribute |
p | Creates an html p element |
paint_order | Creates html paint-order attribute |
panose_1 | Creates html panose-1 attribute |
param | Creates an html param element |
path | Creates an svg path element |
pathLength | Creates html pathLength attribute |
patternContentUnits | Creates html patternContentUnits attribute |
patternTransform | Creates html patternTransform attribute |
patternUnits | Creates html patternUnits attribute |
pc | picas (1pc = 12 pt) |
percent | percentage |
performance | provides access to the window Performance api |
picture | Creates an html picture element |
placeholder | Creates html placeholder attribute |
pointer_events | Creates html pointer-events attribute |
points | Creates html points attribute |
pointsAtX | Creates html pointsAtX attribute |
pointsAtY | Creates html pointsAtY attribute |
pointsAtZ | Creates html pointsAtZ attribute |
polygon | Creates an svg polygon element |
polyline | Creates an svg polyline element |
poster | Creates html poster attribute |
pre | Creates an html pre element |
preload | Creates html preload attribute |
preserveAlpha | Creates html preserveAlpha attribute |
preserveAspectRatio | Creates html preserveAspectRatio attribute |
primitiveUnits | Creates html primitiveUnits attribute |
progress | Creates an html progress element |
pt | points (1pt = 1/72 of 1in) |
px | pixels (1px = 1/96th of 1in) |
r | Creates html r attribute |
radialGradient | Creates an svg radialGradient element |
radiogroup | Creates html radiogroup attribute |
radius | Creates html radius attribute |
rb | Creates an html rb element |
readonly | Creates html readonly attribute |
rect | Creates an svg rect element |
refX | Creates html refX attribute |
refY | Creates html refY attribute |
referrerPolicy | Creates html referrerPolicy attribute |
referrerpolicy | Creates html referrerpolicy attribute |
rem | Relative to font-size of the root element |
rendering_intent | Creates html rendering-intent attribute |
repeatCount | Creates html repeatCount attribute |
repeatDur | Creates html repeatDur attribute |
replace | if the value is true, then this node is made to replace the old node it matches |
request_animation_frame | utility function which executes the agument closure in a request animation frame |
required | Creates html required attribute |
requiredExtensions | Creates html requiredExtensions attribute |
requiredFeatures | Creates html requiredFeatures attribute |
restart | Creates html restart attribute |
result | Creates html result attribute |
reversed | Creates html reversed attribute |
rotate | Creates html rotate attribute |
rows | Creates html rows attribute |
rowspan | Creates html rowspan attribute |
rp | Creates an html rp element |
rt | Creates an html rt element |
rtc | Creates an html rtc element |
ruby | Creates an html ruby element |
rx | Creates html rx attribute |
ry | Creates html ry attribute |
s | Creates an html s element |
samp | Creates an html samp element |
sandbox | Creates html sandbox attribute |
scale | Creates html scale attribute |
scope | Creates html scope attribute |
scoped | Creates html scoped attribute |
script | Creates an html script element |
section | Creates an html section element |
seed | Creates html seed attribute |
select | Creates an html select element |
selected | Creates html selected attribute |
set | Creates an svg set element |
shape | Creates html shape attribute |
shape_rendering | Creates html shape-rendering attribute |
size | Creates html size attribute |
sizes | Creates html sizes attribute |
skip | if the value is true, then the diffing of this element and its descendants are skip entirely |
slope | Creates html slope attribute |
small | Creates an html small element |
solidcolor | Creates an svg solidcolor element |
source | Creates an html source element |
spacing | Creates html spacing attribute |
span | Creates an html span element |
specularConstant | Creates html specularConstant attribute |
specularExponent | Creates html specularExponent attribute |
speed | Creates html speed attribute |
spellcheck | Creates html spellcheck attribute |
spreadMethod | Creates html spreadMethod attribute |
src | Creates html src attribute |
srcdoc | Creates html srcdoc attribute |
srclang | Creates html srclang attribute |
srcset | Creates html srcset attribute |
start | Creates html start attribute |
startOffset | Creates html startOffset attribute |
stdDeviation | Creates html stdDeviation attribute |
stemh | Creates html stemh attribute |
stemv | Creates html stemv attribute |
step | Creates html step attribute |
stitchTiles | Creates html stitchTiles attribute |
stop | Creates an svg stop element |
stop_color | Creates html stop-color attribute |
stop_opacity | Creates html stop-opacity attribute |
strikethrough_position | Creates html strikethrough-position attribute |
strikethrough_thickness | Creates html strikethrough-thickness attribute |
string | Creates html string attribute |
stroke | Creates html stroke attribute |
stroke_dasharray | Creates html stroke-dasharray attribute |
stroke_dashoffset | Creates html stroke-dashoffset attribute |
stroke_linecap | Creates html stroke-linecap attribute |
stroke_linejoin | Creates html stroke-linejoin attribute |
stroke_miterlimit | Creates html stroke-miterlimit attribute |
stroke_opacity | Creates html stroke-opacity attribute |
stroke_width | Creates html stroke-width attribute |
strong | Creates an html strong element |
styles | A helper function which creates a style attribute by assembling the tuples into a string for the style value. |
styles_flag | A helper function which creates a style attribute by assembling only the parts that passed the boolean flag |
styles_values | A helper function to build styles by accepting pairs |
sub | Creates an html sub element |
sup | Creates an html sup element |
surfaceScale | Creates html surfaceScale attribute |
svg | Creates an svg svg element |
svg_element | creates an svg element with the tag, attributes and children. Example: |
switch | Creates an svg switch element |
symbol | Creates an svg symbol element |
systemLanguage | Creates html systemLanguage attribute |
table | Creates an html table element |
tableValues | Creates html tableValues attribute |
targetX | Creates html targetX attribute |
targetY | Creates html targetY attribute |
tbody | Creates an html tbody element |
td | Creates an html td element |
template | Creates an html template element |
text | Create a textnode element |
textLength | Creates html textLength attribute |
textPath | Creates an svg textPath element |
text_anchor | Creates html text-anchor attribute |
text_decoration | Creates html text-decoration attribute |
text_rendering | Creates html text-rendering attribute |
textarea | Creates an html textarea element |
tfoot | Creates an html tfoot element |
th | Creates an html th element |
thead | Creates an html thead element |
time | Creates an html time element |
to | Creates html to attribute |
tr | Creates an html tr element |
track | Creates an html track element |
transform | Creates html transform attribute |
translate | Creates html translate attribute |
tspan | Creates an svg tspan element |
type | Creates html type attribute |
type_ | Creates html type attribute |
u | Creates an html u element |
u1 | Creates html u1 attribute |
u2 | Creates html u2 attribute |
ul | Creates an html ul element |
underline_position | Creates html underline-position attribute |
underline_thickness | Creates html underline-thickness attribute |
unicode | Creates html unicode attribute |
unicode_bidi | Creates html unicode-bidi attribute |
unicode_range | Creates html unicode-range attribute |
units_per_em | Creates html units-per-em attribute |
unknown | Creates an svg unknown element |
usemap | Creates html usemap attribute |
v_alphabetic | Creates html v-alphabetic attribute |
v_hanging | Creates html v-hanging attribute |
v_ideographic | Creates html v-ideographic attribute |
v_mathematical | Creates html v-mathematical attribute |
value | Creates html value attribute |
values | Creates html values attribute |
var | Creates an html var element |
vector_effect | Creates html vector-effect attribute |
version | Creates html version attribute |
vert_adv_y | Creates html vert-adv-y attribute |
vert_origin_x | Creates html vert-origin-x attribute |
vert_origin_y | Creates html vert-origin-y attribute |
vh | Relative to 1% of the height of the viewport* |
video | Creates an html video element |
view | Creates an svg view element |
viewBox | Creates html viewBox attribute |
viewTarget | Creates html viewTarget attribute |
view_if | A help function which render the view when the condition is met, otherwise just display a text("") |
visibility | Creates html visibility attribute |
vw | Relative to 1% of the width of the viewport* |
wbr | Creates an html wbr element |
width | Creates html width attribute |
widths | Creates html widths attribute |
window | utility function which returns the Window element |
word_spacing | Creates html word-spacing attribute |
wrap | Creates html wrap attribute |
writing_mode | Creates html writing-mode attribute |
x | Creates html x attribute |
x1 | Creates html x1 attribute |
x2 | Creates html x2 attribute |
xChannelSelector | Creates html xChannelSelector attribute |
x_height | Creates html x-height attribute |
xlink_actuate | creates a function where the function name is the attribute name of the svg element |
xlink_arcrole | creates a function where the function name is the attribute name of the svg element |
xlink_href | creates a function where the function name is the attribute name of the svg element |
xlink_role | creates a function where the function name is the attribute name of the svg element |
xlink_show | creates a function where the function name is the attribute name of the svg element |
xlink_title | creates a function where the function name is the attribute name of the svg element |
xlink_type | creates a function where the function name is the attribute name of the svg element |
xml_base | Creates html xml:base attribute |
xml_lang | Creates html xml:lang attribute |
xml_space | Creates html xml:space attribute |
xmlns | Creates html xmlns attribute |
xmlns_xlink | Creates html xmlns:xlink attribute |
y | Creates html y attribute |
y1 | Creates html y1 attribute |
y2 | Creates html y2 attribute |
yChannelSelector | Creates html yChannelSelector attribute |
z | Creates html z attribute |
zoomAndPan | Creates html zoomAndPan attribute |
Type Definitions
Attribute | Attribute type used in sauron where the type of the Attribute name is &'static str |
AttributeKey | attribute keys |
Callback | Callback where Event type is supplied |
Cmd | alias Cmd to use Program as the APP |
Element | Element type with tag and attribute name type set to &'static str |
Event | Map the Event to DomEvent, which are browser events |
Namespace | namespace type in node, which could be change to an enum |
Node | A simplified version of saurdon_vdom node, where we supplied the type for the tag which is a &'static str. The missing type is now only MSG which will be supplied by the users App code. |
Patch | Patch as result of diffing the current_vdom and the new vdom. The tag and attribute name types is set to &'static str |
Tag | tags are using static str for now, can also be enum tags |
Attribute Macros
__wasm_bindgen_class_marker | |
wasm_bindgen |