rdom-tui 0.5.0

Terminal rendering layer for rdom-core — flexbox layout, TUI styles, key/mouse events. Use rdom-core directly for headless DOM manipulation.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
//! Unit tests for the CSSOM declaration wrappers, grouped by
//! concern: `read` (getters, `length` / `item`, generated aliases),
//! `write` (the setter family and its error channel), and
//! `css_text` (serialization shape + round-trips).

use crate::TuiDom;

mod css_text;
mod read;
mod write;

fn dom_with(tag: &str) -> (TuiDom, rdom_core::NodeId) {
    let mut dom: TuiDom = TuiDom::new();
    let root = dom.root();
    let el = dom.create_element(tag);
    dom.append_child(root, el).unwrap();
    (dom, el)
}