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
Dom
node. - fragment
- Creates a
Fragment
which can be inserted into aDomBuilder
. - 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§
- 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_size
function.
Enums§
- Color
Scheme - Color scheme of the browser.
- Scroll
Align - Scroll alignment for
ScrollIntoView
. - Scroll
Behavior - Scroll behavior for
ScrollIntoView
. - Shadow
Root Mode - The
ShadowRootMode
enum.
Constants§
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 istrue
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 forbox_fragment!
for more details.