Page Configuration
In the directory /pages, the .json file is used to configure the window display of the current page. The page configuration is much simpler than the app.json global configuration. It is possible to set the window related configuration items only but it is not necessary to write the window key. The page configurations are prior to global configurations.
The window configurations are the same as Global Configuration and support the following points additionally:
- Supporting the
optionMenuconfiguration navigation icon, which triggersonOptionMenuClickon clicking However, please note that theoptionMenuconfiguration will be deprecated.
- Supporting
titlePenetrateto set the navigation bar click-through
- Supporting
barButtonThemeto set the navigation bar icon scheme
Complete configurations
| Attribute name | Type | Mandatory | Description | Minimum version |
| optionMenu | Object | NO | Set extra icon of navigation bar, supporting attribute icon with value as icon URL (starting with https/http ) or base64 string, suggested size 30*30 px | Base library 1.3.0 |
| titlePenetrate | BOOL | NO | Set navigation bar click-through | - |
| barButtonTheme | String | NO | Set navigation bar icon scheme, “default” for blue icon or “light” for white icon | - |
Here is a basic example:
copy
{
"optionMenu": {
"icon": "https://img.example.com/example.png"
},
"titlePenetrate": "YES",
"barButtonTheme": "light"
}