Skip to content

Commit

Permalink
O2DEB2P-1308 Update readme for method updateNavigationBar (#164)
Browse files Browse the repository at this point in the history
  • Loading branch information
finuka authored Nov 12, 2024
1 parent d8b14aa commit a86d004
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -290,13 +290,18 @@ downloadBase64({
<kbd>App version >= 10.7: Partial support</kbd><br/> <kbd>App version >= 11.8:
expandedTitle</kbd><br/> <kbd>App version >= 14.8: Additional properties and
deprecations</kbd><br/> <kbd>Partial support in B2P App version <=24.10:
title</kbd>
title</kbd><br/> <kbd>Partial support in B2P App version >=24.11: right
actions</kbd><br/> <kbd>Full support in B2P App version >=24.12: title</kbd>
Customize WebView NavigationBar properties. You can set one or more properties
in a single call
```ts
type NavigationBarIcon = {
/** Identifier. The native side will notify the WebView when the icon is clicked using this id*/
id: string;
/** URL to be opened by the app as a deep-link if present */
url?: string;
/** Content description of the image used for accessibility */
name: string;
/**
Expand Down Expand Up @@ -387,6 +392,7 @@ updateNavigationBar({
backgroundColor: '#FF0000',
leftActions: [
{
id: 'iconID',
name: 'icon name',
iconEnum: 'SOME_ICON',
badge: {
Expand All @@ -397,6 +403,7 @@ updateNavigationBar({
],
rightActions: [
{
id: 'iconID',
name: 'icon name',
iconEnum: 'icon enum value',
icon: {
Expand Down

0 comments on commit a86d004

Please sign in to comment.