Skip to main content

dom

Function dom 

Source
pub fn dom<'a>(rect: Rect, sheet: &'a Sheet, root: El) -> DomBuilder<'a>
Expand description

Lay out root with sheet in rect (scrolled up by DomBuilder::scroll), paint it, and register every element with an id: buttons, switches, checkboxes and rows become focusable click targets named by their accessible name (El::name first, then text) with their checked state; DOM text inputs (uzor::ui::dom::Control::Input) become text-store fields, so caret, selection, drag, clipboard and IME work as in field. position: fixed elements (a select popover, a side panel) are placed against the panel and stay put while it scrolls.

Kit widgets go inside the tree through embed slots: call them at resp.dom.slots() after build.