setToolbarActions
Description
Add actions as buttons in the webview navigation bar
Parameters
Param | Data type | Required | Description |
---|---|---|---|
data[{iconLink, callback}] | Array<Object<string|() => void>> | Yes | Data of an action |
Return Value
N/A
Error Code
N/A
Sample Code and Sample Return Data
Sample Request:
window.zlpSdk.UI
.setToolbarActions({ backgroundColor: "#FF00EE", hidden: false})
.then((response) => console.log(response))
.catch((error) => console.error(error.errorCode));
Sample Response:
{ data: {}, status: "success" }