You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In case no view is opened, it is required to display some default layout in the Main View, e.g. with logo or dash board.
Let's add initialLayout element to the main view, so if no view is opened, its content is displayed. The logic of handling switching between a view and initial layout must be located in the base class.
Solution
Optional <initialLayout> element is introduced inside <appLayout>, e.g.:
In case no view is opened, it is required to display some default layout in the Main View, e.g. with logo or dash board.
Let's add
initialLayout
element to the main view, so if no view is opened, its content is displayed. The logic of handling switching between a view and initial layout must be located in the base class.Solution
Optional
<initialLayout>
element is introduced inside<appLayout>
, e.g.:When added in XML, the root
<initialLayout>
element effectively isVerticalLayout
.Alternatively
StandardMainView
's java API can be used to set/get initial layout:StandardMainView#getInitialLayout
- returns root component of initial layoutStandardMainView#setInitialLayout
- sets a component that will be an initial layoutComponents inside
<initialLayout>
can be injected in theMainView
, e.g.:The text was updated successfully, but these errors were encountered: