There are three main app properties: map, widgetOnScreen, and widgetPool. The following table describes the attributes for app configuration.
Object. Theme has three properties:
String. This can be proxy.jsp, proxy.php, or proxy.asp, depending on the web server. The default is true. httpProxy has the following properties:
String. If the viewer integrates with the portal, set the portal URL here.
String. Required for OAuth 2 login.
String. URL points to the logo file.
String. The title of the app.
String. The subtitle of the app.
Sets links to other resources. Each link has two properties: URL and label.
See the map's configuration.
Object. Can contain some widgets and widget groups. All the widgets and groups in this object load when the app starts. See Widget on-screen configuration.
Object. Can contain some widgets and widget groups. All the widget groups in this object will not load by default. These widgets are controlled by controller widgets, which can read this configuration while starting and closing the widgets by sending messages to the app. See Widget pool configuration.
Optional—Boolean. Determines whether web-tier authentication is used for the ArcGIS Enterprise portal. The default is false.
String. The URL of the geometry service used by widgets and the web map. If not set, it reads from the portal.
String. The app's configuration version.
Optional—Object. Only valid in the developer edition. Any property changes on the object do not affect the loading page. The configuration of the loading page is saved in it, and the code of the loading page is generated when the app is saved.
Object—Defines the app layout on a mobile device. Currently the app switches to mobile mode when the browser's width and height are less than 600 pixels.
The content of the property is the same as the app configuration except that it only contains the position of the on-screen widget and group. To define the position of the widget and group, see the Create the layouts section in Create a theme.
If a widget or group is not defined in mobileLayout, it will use the position defined in app config.
Optional—Object. Only valid for the template and template app. It stores the template configuration and has the same properties as ArcGIS Online templates. See Add configurable parameters to templates.
Boolean. Determines whether the app is created from a template.
Array. Stores portal or server domains that use web-tier authentication.
By default, Web AppBuilder reads the value of authorizedCrossOriginDomains from your portal and saves it in the app config file. If you want to change the value of authorizedCrossOriginDomains in the config file, go to your portal organization page and make the update. App config will sync the change when you save the app.
Array. The array of proxy items for specific URLs. Each proxy item contains the following parameters:
Object. Defines the layout of the on-screen widget and map. If this property does not exist, use jimu.js/layoutManagers/AbsolutePositionManager, which is the layout manager that Web AppBuilder has been using.
It has the following two properties:
Object. Defines the data sources in the app. There are two data sources: widget data source and extra data source.
Optional - Boolean. If true, the current map extent and the layer visibility will be kept before you leave the app so you can see the same map extent and layer visibility when open the app next time.