When a merchant interacts with your custom navbar button or dropdown items, the SDK provides a way to listen and respond to those events.Usage#
API Reference#
embedded.nav.onActionClick(callback)#
Registers a global listener for navigation action events.| Parameter | Type | Required | Description |
|---|
| callback | function | Yes | Function called when an action is clicked. Receives (value). |
Callback Parameters#
| Parameter | Type | Description |
|---|
| value | string | The value identifier of the clicked action (primary or extended). |
Return Value#
| Type | Description |
|---|
function | An unsubscribe function to remove the listener. |
Complete Example#
Modified at 2026-02-02 10:34:37