HomeDocs
Skip to main content

dlt.showHomeButton

Introduction​

Display the home button.

Parameters​

PropertyTypeDefault ValueRequiredDescription
actionstringThe same as the navigationBarHomeAction field property in app.json. If navigationBarHomeAction is configured as empty, it will be home by default.Nohome: The small house button and return to the home page.
back: Leftward return arrow, only return to the first level.
all: Display both the return and small house capsules.
successfunctionNoCallback function for a successful API call
failfunctionNoCallback function for a failed API call
completefunctionNoCallback function that is called when the API call is complete (whether successful or not)

Example Code​

dlt.showHomeButton({
action: 'home',
success(res) {
console.log('success: ', res);
},
});
Privacy agreementDeveloper agreementcontact us: developer_private.mi@dlightek.com © 2024 MiniApp. All Rights Reserved.