Skip to content

Latest commit

 

History

History
10 lines (5 loc) · 1.02 KB

changing-the-layout-and-loading-views-best-practices-607a316.md

File metadata and controls

10 lines (5 loc) · 1.02 KB

Changing the Layout and Loading Views (Best Practices)

The app can load controls (usually views) in the three columns with the standard means (beginColumnPages, midColumnPages, endColumnPages aggregations) and navigate between them with the .to(), .backToPage() or any other public method, similar to the sap.m.NavContainer or sap.m.SplitContainer controls.

At the same time, the app can change the layout of the control by modifying the layout property.

If both a layout change and the loading of a new view need to happen as a result of one user action, the best practice is to change the layout first, and to load the views (or navigate to already loaded views) second. This would ensure that the columns are resized first (as layout change is done synchronously), and only then views are placed inside the already resized columns. This would eliminate the need for controls in the views to readapt to the new size after they are placed and rendered initially.