Infer the Parent of Layout Elements By Their Order
inferSlateLayout(layout)
layout | an ordered list of layout elements (pages, groups and inputs). |
---|
The same structure passed in layout
with the appropriate modifications
to parent
values
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.