HomeDocs
Skip to main content

dlt.setNavigationBarTransparent

Introduction

Sets the navigation bar to be transparent.

Parameters

Object object

PropertyTypeDefaultRequiredDescription
enablebooleanfalseNoSet the navigation bar to be transparent. Possible values: true, false.
successfunctionNoCallback function for a successful API call.
failfunctionNoCallback function for a failed API call.
completefunctionNoCallback function that will be executed when the API call is complete (both successful and failed calls).

Example Code

// pages/index/index.js
Page({
onLoad() {
dlt.setNavigationBarTransparent({
enable: true,
success: function () {
console.log("成功");
},
fail: function () {
console.log("失败");
},
});
},
});
Privacy agreementDeveloper agreementcontact us: developer_service.mi@transsion.com © 2024 MiniApp. All Rights Reserved.