Skip to main content

parse_items

Function parse_items 

Source
pub fn parse_items<T: RepeaterItem>(
    cx: &Cx,
    key: &str,
    values: &HashMap<String, String>,
) -> Result<Vec<T>, Vec<FieldError>>
Expand description

The items the repeater key holds in a submission folded, none when it posts nothing: what a record form’s parse reads the repeater with, and what a hand-written one or an action input reads.

§Errors

Each row’s refusals, under the key the row’s control posts, or the repeater’s own when its value holds no rows.