html functions
The hypersig::html module builds elements, lists, and conditional parts.
Functions
Besides these, the module has one function per common tag, such as div, p, button, input, and ul.
| Item | Summary |
|---|---|
el | Creates an element with any tag. |
each | Renders render once per item of list in the browser, and updates the rendered elements when the list changes. |
each_keyed | each, with each item's element identified by key. |
when | Puts el in the document only while cond is true. |
part | Embeds the Part whose signals are the field at of this page. |
Types
| Item | Summary |
|---|---|
El | An HTML element belonging to a page whose signals are S. |
Node | A node in the tree: an element, a run of text, or a template the browser expands. |
Event | A DOM event a statement can run on. |
CustomEvent | An event that a script, such as a custom element, dispatches on an element. |
Key | A key that El::on_key filters keydown by. |
Shortcut | A Key and the modifiers held with it, which El::on_key and Page::on_key match. |
Orientation | A horizontal or vertical direction, which decides the arrow keys El::roving_focus uses. |
Stylesheet | CSS text whose class selectors Stylesheet::class checks at compile time. |
Class | A class name that El::class and El::class_when put on an element. |