Modules§
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 aBoxFragment. - class
- Creates a locally scoped CSS stylesheet.
- clone
- Helper utility that calls
clone. - dom_
builder - Converts an existing DOM node into a dominator
Domnode. - fragment
- Creates a
Fragmentwhich can be inserted into aDomBuilder. - html
- Creates an HTML
Domnode. - 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
Domnode. - with_
cfg - Conditionally runs the methods based on a
cfgrule. - with_
node - Gives access to the internal DOM node.
Structs§
- Class
Builder - Dom
- DomBuilder
- DomHandle
- Event
Options - Fragment
Builder - This is used by the
fragment!andbox_fragment!macros. - RefFn
- Scroll
Into View - Specifies the scroll behavior for
DomBuilder::scroll_into_view_signal. - Stylesheet
Builder - Window
Size - This is returned by the
window_sizefunction.
Enums§
- Color
Scheme - Color scheme of the browser.
- Scroll
Align - Scroll alignment for
ScrollIntoView. - Scroll
Behavior - Scroll behavior for
ScrollIntoView. - Shadow
Root Mode - The
ShadowRootModeenum.
Constants§
Traits§
- Fragment
- A fragment is a collection of children which can be inserted into a
DomBuilder.
Functions§
- append_
dom - Appends a
Dominto the real DOM. - body
- color_
scheme - The color scheme of the browser.
- get_id
- is_
window_ loaded Signalwhich says whether the window is fully loaded or not.- media_
query Signalwhich istrueif the media query matches.- replace_
dom - The same as
append_domexcept it replaces an existing DOM node. - stylesheet_
raw - Creates a raw global CSS stylesheet.
- text
- text_
signal - window_
size Signalwhich gives the current width / height of the window.
Type Aliases§
- BoxFragment
- A boxed
Fragment. See the documentation forbox_fragment!for more details.