Skip to main content

setActionBar

Note
This function is in development.

Supported Version

zpa
Only supported in Zalopay App

Description

Adjust color, hide/show navigation bar of webview

Parameters

ParamData typeRequiredDescription
hiddenbooleanYesHide or show the navigation bar
backgroundColorstringYesNavigation bar color (hex color system)
titleColorstringYesTitle text color in navigation bar (hex color system)

Return Value

N/A

Error Code

N/A

Sample Code and Sample Return Data

Sample Request:

window.zlpSdk.UI
.setActionBar({
backgroundColor: "#FF00EE",
titleColor: "#000000",
hidden: false
})
.then((response) => console.log(response))
.catch((error) => console.error(error.errorCode));

Sample Response:

{ data: {}, status: "success" }