Skip to main content

setToolbarActions

Description

Add actions as buttons in the webview navigation bar

Parameters

ParamData typeRequiredDescription
data[{iconLink, callback}]Array<Object<string|() => void>>YesData 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" }