Page configuration file--pagename.json
Each applet page can use a .json
file to configure the window representation of this page , and the configuration item in the page overrides the same configuration item in the App.json window.
.json
only window
relevant configuration items can be set on the page to determine the window performance of this page:
Properties |
type |
Default Value |
Description |
Navigationbarbackgroundcolor |
Hexcolor |
#000000 |
Navigation bar background color, such as "#000000" |
Navigationbartextstyle |
String |
White |
Navigation bar title color, support only Black/white |
Navigationbartitletext |
String |
|
Navigation bar Title text content |
BackgroundColor |
Hexcolor |
#ffffff |
Background color of the window |
Backgroundtextstyle |
String |
Dark |
Drop-down background font, loading chart style, support only dark/light |
Enablepulldownrefresh |
Boolean |
False |
Whether to turn on the drop-down refresh |
Disablescroll |
Boolean |
False |
Set to True to not scroll up or down the whole page; only valid in Page.json, unable to set the item in App.json |
Onreachbottomdistance |
Number |
50 |
The distance from the bottom of the page when the pull-down event is triggered on the page, in PX |
Small program Learning Note II: Detailed page file. json file