You can configure the window display for each ASCF page in the .json file. The window configuration on the page will overwrite the corresponding configuration set in the app.json file. A JSON object is contained in the .json file, including the following properties.
To apply the following properties to all pages, configure them in the app.json file. To apply properties to specific pages, configure them in the corresponding .json file.
| Attribute | Type | Default Value | Mandatory | Description |
|---|---|---|---|---|
| navigationBarBackgroundColor | HexColor | #ffffff | No | Background color of the navigation bar, for example, #ffffff. |
| navigationBarTextStyle | string | black | No | Title color of the navigation bar. For API version 12, this parameter can be set to black or white only when navigationStyle is set to custom. In other cases, only black is available. For API version 13 or later, the value can be black or white. |
| navigationBarTitleText | string | - | No | Title text of the navigation bar. |
| navigationStyle | string | default | No | Navigation bar style. The options are as follows: - default: default style. - custom: custom style. Only the capsule button in the upper right corner is retained. |
| backgroundColor | HexColor | #ffffff | No | Background color of the window. |
| enablePullDownRefresh | boolean | false | No | Whether to enable pull-to-refresh on the current page. |
| backgroundTextStyle | string | dark | No | Background text style of pull-down loading. Only dark and light are available. |
| onReachBottomDistance | number | 50 | No | Distance from the bottom of the page when the pull-up event is triggered, in pixels. |
| disableScroll | boolean | false | No | Whether the page can be scrolled. If this parameter is set to true, the page cannot be scrolled vertically. This parameter is valid only in the page configuration and cannot be set in app.json. |
| visualEffectInBackground | string | none | No | Whether to hide the page content for user privacy protection when the app is switched to the system background. The value can be hidden or none. If this parameter is set separately for a page, the global configuration will be overwritten. Since: 2.0.1 |
| usingComponents | Object | - | No | Configuration of page custom components. |