TreeElementPopulate extension

Filling a template instance tree from a saved one.

on

Methods

populate(TreeElement incoming, FormDef form, {AnswerResolver resolver = defaultAnswerResolver}) → void

Available on TreeElement, provided by the TreeElementPopulate extension

Fills this template node (and its subtree) from the saved node incoming: typed values, repeat instances, attributes; a missing non-repeat child becomes non-relevant. Port of TreeElement.populate.