当前位置:网站首页>Tabbar configuration at the bottom of wechat applet
Tabbar configuration at the bottom of wechat applet
2022-07-05 12:07:00 【**inevitable**】
List of articles
What is? tabBar
tabBar It is usually used to realize the fast switching of multiple pages , There is usually a bottom tabBar And the top tabBar.tabBar You can only configure at least 2 individual , most 5 individual tab label ; Render top tabBar when , No display icon Icon , Show only text
tabBar Configuration item of node
attribute | type | Must write | describe |
---|---|---|---|
list | String | yes | tabBar Tab list ( least 2 individual , most 5 individual ) |
pagePath | String | yes | Page path , The page must be in pages Predefined in |
text | String | yes | tabBar Text displayed on |
iconPath | String | no | The size of the picture when it is not selected |
selectedIconPath | String | no | The size of the picture when selected |
color | HexColor | no | tab The color of the unselected text on |
selectedColor | HexColor | no | tab The color of the selected text on |
backgroundColor | HexColor | no | tabBar Background color |
borderStyle | String | no | tabBar Top border color ( Support only black/white) |
position | String | no | tabBar The location of ( Support only bottom/top) |
To configure tabBar Steps for options
1. newly added tabBar node
open app.json The configuration file , In the and windows New under level tabBar node
2. newly added list Array
tabBar In nodes , newly added list Array , This array holds each tab The configuration object of the item , The properties contained in the object are as follows :
pagrPath: Specify the current tab Corresponding page path
text: Specify the current tab The text of the button on the
iconPath: Specify the current tab Picture path when not selected
selectedIconPath: Specify the current tab Image path when selected
Icons can go to Ali Icon Library Download
3. change tabBar The color when the upper text is selected
In addition, you can also set other attributes according to your own needs
边栏推荐
- Linux Installation and deployment lamp (apache+mysql+php)
- [configuration method of win11 multi-user simultaneous login remote desktop]
- 什么是数字化存在?数字化转型要先从数字化存在开始
- 13.(地图数据篇)百度坐标(BD09)、国测局坐标(火星坐标,GCJ02)、和WGS84坐标系之间的转换
- 谜语1
- [singleshotmultiboxdetector (SSD, single step multi frame target detection)]
- redis主从中的Master自动选举之Sentinel哨兵机制
- Video networkstate property
- liunx禁ping 详解traceroute的不同用法
- 15 methods in "understand series after reading" teach you to play with strings
猜你喜欢
Riddle 1
mysql拆分字符串做条件查询
Check the debug port information in rancher and do idea remote JVM debug
一次生产环境redis内存占用居高不下问题排查
Codeworks 5 questions per day (1700 average) - day 5
The most comprehensive new database in the whole network, multidimensional table platform inventory note, flowus, airtable, seatable, Vig table Vika, flying Book Multidimensional table, heipayun, Zhix
【pytorch 修改预训练模型:实测加载预训练模型与模型随机初始化差别不大】
Mongodb replica set
互联网公司实习岗位选择与简易版职业发展规划
Wireless WiFi learning 8-channel transmitting remote control module
随机推荐
一类恒等式的应用(范德蒙德卷积与超几何函数)
Install esxi 6.0 interactively
ABAP table lookup program
What is digital existence? Digital transformation starts with digital existence
MVVM framework part I lifecycle
[untitled]
[calculation of loss in yolov3]
Hiengine: comparable to the local cloud native memory database engine
redis主从中的Master自动选举之Sentinel哨兵机制
How to clear floating?
Which domestic cloud management platform manufacturer is good in 2022? Why?
【TFLite, ONNX, CoreML, TensorRT Export】
手机 CPU 架构类型了解
强化学习-学习笔记3 | 策略学习
Network five whip
The solution of outputting 64 bits from printf format%lld of cross platform (32bit and 64bit)
查看rancher中debug端口信息,并做IDEA Remote Jvm Debug
Recyclerview paging slide
ACID事务理论
一次生产环境redis内存占用居高不下问题排查