File "Component.js" and "Manifest.json"
xFlow Mobile has been compiled as a UIComponent. For these purposes, two new files have been created:
Component.js: This file serves to initialize xFlow Mobile with the manifest.Manifest.json: In this file, the behavior of the application is described. It specifies the version, application title, libraries used, and other resources.
In addition, in the file Manifest.json, the routing of the application is described. For each navigation point to be reached within the application, a route is described, consisting of pattern, name, and target. pattern and name serve to identify the actual route, whereas target provides a list of views to be displayed.
{
"pattern": "wilist",
"name": "wilist",
"target": ["start_witype", "start_wilist"]
},The views are defined in the file Manifest.json below the route. Which view appears in which area of the screen is determined here. A view with controlAggregation: masterPages is displayed in the smaller section on the left side of the screen. A view with controlAggregation: masterPages is displayed in the larger section on the right side of the screen.
},
"start_witype": {
"viewId": "start_witype",
"viewName": "start_witype",
"controlAggregation": "masterPages",
"viewLevel": 1
},If the screen used is small—such as that for a smartphone—only a single view will be displayed at a given time. The initial view displayed is the final one in the screen target.