Infer the Parent of Layout Elements By Their Order

inferSlateLayout(layout)

Arguments

layout

an ordered list of layout elements (pages, groups and inputs).

Value

The same structure passed in layout with the appropriate modifications to parent values

Details

This function takes in a list of pages, groups and inputs and replaces the parent of elements with parent = "auto" with the name of the previous group or page.