Small program Learning Note II: Detailed page file. json file

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.