dlt.showHomeButton
Introduction
Display the home button.
Parameters
Property | Type | Default Value | Required | Description |
---|---|---|---|---|
action | string | The same as the navigationBarHomeAction field property in app.json. If navigationBarHomeAction is configured as empty, it will be home by default. | No | home: 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. |
success | function | No | Callback function for a successful API call | |
fail | function | No | Callback function for a failed API call | |
complete | function | No | Callback 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);
},
});