setActionBar
Note
This function is in development.Supported Version
zpa
Only supported in Zalopay AppDescription
Adjust color, hide/show navigation bar of webview
Parameters
Param | Data type | Required | Description |
---|---|---|---|
hidden | boolean | Yes | Hide or show the navigation bar |
backgroundColor | string | Yes | Navigation bar color (hex color system) |
titleColor | string | Yes | Title 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" }