Skip to main content

ComponentRenderFn

Type Alias ComponentRenderFn 

Source
pub type ComponentRenderFn = fn(&ComponentDef, &ComponentDataModel, &ComponentMap) -> ResultStyledDomRenderDomError;
Expand description

Render function type: takes component definition + data model (with current values in default_value fields) + component map for recursive sub-component instantiation, returns StyledDom.

The data parameter is typically def.data_model cloned and with caller-provided values substituted into the default_value fields.