Crate dominator

Source

Modules§

animation
events
routing
traits

Macros§

apply_methods
Utility to apply methods to an object.
attrs
A convenient shorthand for multiple .attr(...) calls.
box_fragment
The same as fragment! except it returns a BoxFragment.
class
Creates a locally scoped CSS stylesheet.
clone
Helper utility that calls clone.
dom_builder
Converts an existing DOM node into a dominator Dom node.
fragment
Creates a Fragment which can be inserted into a DomBuilder.
html
Creates an HTML Dom node.
link
Creates an <a> element which works with routing.
on_click_go_to_url
Changes an <a> element to work with routing.
props
A convenient shorthand for multiple .prop(...) calls.
pseudo
Adds a pseudo rule to a class! stylesheet.
shadow_root
Attaches a shadow root to a DomBuilder.
styles
A convenient shorthand for multiple .style(...) calls.
stylesheet
Creates a global CSS stylesheet.
svg
Creates an SVG Dom node.
with_cfg
Conditionally runs the methods based on a cfg rule.
with_node
Gives access to the internal DOM node.

Structs§

ClassBuilder
Dom
DomBuilder
DomHandle
EventOptions
FragmentBuilder
This is used by the fragment! and box_fragment! macros.
RefFn
ScrollIntoView
Specifies the scroll behavior for DomBuilder::scroll_into_view_signal.
StylesheetBuilder
WindowSize
This is returned by the window_size function.

Enums§

ColorScheme
Color scheme of the browser.
ScrollAlign
Scroll alignment for ScrollIntoView.
ScrollBehavior
Scroll behavior for ScrollIntoView.
ShadowRootMode
The ShadowRootMode enum.

Constants§

HIGHEST_ZINDEX

Traits§

Fragment
A fragment is a collection of children which can be inserted into a DomBuilder.

Functions§

append_dom
Appends a Dom into the real DOM.
body
color_scheme
The color scheme of the browser.
get_id
is_window_loaded
Signal which says whether the window is fully loaded or not.
media_query
Signal which is true if the media query matches.
replace_dom
The same as append_dom except it replaces an existing DOM node.
stylesheet_raw
Creates a raw global CSS stylesheet.
text
text_signal
window_size
Signal which gives the current width / height of the window.

Type Aliases§

BoxFragment
A boxed Fragment. See the documentation for box_fragment! for more details.