Home > Web Front-end > uni-app > How to hide the back button in uniapp

How to hide the back button in uniapp

coldplay.xixi
Release: 2023-01-13 00:44:15
Original
9914 people have browsed it

Uniapp method to hide the return button: 1. Hide the scroll bar, the code is ["scrollIndicator": "none"]; 2. Turn off the bounce effect, the code is ["bounce": "none"]; 3 , configure the button, the code is ["text":"Cancel"].

How to hide the back button in uniapp

The operating environment of this tutorial: windows7 system, uni-app2.5.1 version, thinkpad t480 computer.

Recommended (free): uni-app development tutorial

How to hide the back button in uniapp:

Use syntax to hide

"autoBackButton":false,
Copy after login
{
            "path" : "pages/search/search",
            "style" : {
                "enablePullDownRefresh":true,
                "app-plus":{
                     "scrollIndicator":"none",//隐藏滚动条
                     "bounce":"none",//关闭反弹效果
                     "titleNView":{
                         "autoBackButton":false,
                         // 搜索框配置
                         "searchInput":{
                             "align":"left",
                             "backgroundColor":"#F7F7F7",
                             "borderRadius":"4px",
                             "placeholder":"搜索糗事",
                             "placeholderColor":"#CCCCCC",
                             "disabled":false
                         },
                         //配置按钮
                         "buttons":[
                             // 右边
                             {
                                 "color":"#000000",                                 
                                 "colorPressed":"#BBBBBB",
                                 "float":"right",
                                 "fontSize":"16px",
                                 "text":"取消"
                             }
                         ]
                     }
                }
            }
        }
Copy after login

Related free learning recommendations: Programming video

The above is the detailed content of How to hide the back button in uniapp. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template