Skip to main content

parse_props

Function parse_props 

Source
pub fn parse_props(
    t: &Table,
    is_row: bool,
    refs: &mut Refs<'_>,
) -> Result<PropsOut>
Expand description

Reads a node table’s props into a PropsOut.

Constructor-order specials come first (dir from the node type, size before any style prop), then the Lua-shaped composites (pad, border, float, sizing), then every schema row by its snake_case name. Keys the schema does not own (type, value, label, the children) fall through. refs is what a $name resolves through.