Module utils

Module utils 

Source
Expand description

Utilities

Macros§

ouia

Structs§

Action
Definition of an action.
ChildrenProperties
A properties structures which only has children.
ContextWrapper
GlobalClose
Helper to trigger a close operation, when the user clicks on the global space.
Id
IterableHtmlCollection
Allow iterating over an [HtmlCollection].
IterableNodeList
Allow iterating over a [NodeList].
Ouia
OuiaComponentType
OuiaSafe
Raw
A general purpose “raw” component.
Styled
Wrap an element with style.

Traits§

ElementSupport
Support working with web_sys::Element
HtmlElementSupport
Support working with web_sys::HtmlElement
IntoAction
Allows converting something into an Action by providing a label.

Functions§

attr_value_to_static_cow
Turn an IString (or AttrValue) into a Cow<'static, str>
focus
Focus an HTML input element.
random_id
Create a random ID.
value
Retrieve the value of an HtmlInputElement.