1. Nav Module
Salla Platform Docs
  • Embedded SDK
    • Overview
    • Getting Started
    • Create an Embedded App
    • Authentication
    • App Design Guidelines
    • Installation
    • Playground
  • Auth Module
    • Get Token
    • Client Introspect
    • Refresh Token
  • Page Module
    • External Redirects
    • Navigation
    • Set Page Title
  • Nav Module
    • Create Navbar Action
    • Listen for Navbar Actions
    • Clearing Navbar Actions
    • Add Navbar Item
    • Update Navbar Item
    • Listen for Navbar Item Click
    • Remove Navbar Item
  • UI Module
    • Confirm Dialogs
    • Toast Notifications
    • Loading States
    • Breadcrumbs
  • Checkout Module
    • Create Checkout
    • Get App Add-ons
    • Subscribe for Payment Result
  • Endpoints
    • Token Introspect
      POST
  • Resources
    • Support
    • Common Examples
  • Report Builder
    • Overview
    • Getting Started
    • JMESPath Tutorial
    • Understanding the Report Lifecycle
    • Salla Reports Examples
    • Set up Store data using merchant APIs
    • Report Types
      • Unit
      • Bar
      • Breakdown
      • Calendar
      • Distribution
      • Pipe
      • Plot
      • Ranking
      • Summary
      • Agrid
    • APIs
      • Token Introspect
  • App Onboarding
    • Overview
    • Get Started
    • Interfaces and Responses
    • Example
Merchant
Merchant
  • Merchant API
  • Embedded SDK
  • Salla OAuth 2.0
Storefront
Storefront
  • Twilight Engine
  • Twilight SDK
  • Web Components
  • Ecommerce Events
  • Component Bundle
  • Checkout APIs
  • Change Log
App Functions
Partner APIs
Partner APIs
  • App API
  • Shipments & Fulfillment APIs
  • Salla AWB
  • Recurring Payments API
  • Billing System Salla partners
  • Communication Apps
Dev Tools
Dev Tools
  • Partners Agent Kit
  • Salla Apps Playbook
  • Salla CLI
Merchant
Merchant
  • Merchant API
  • Embedded SDK
  • Salla OAuth 2.0
Storefront
Storefront
  • Twilight Engine
  • Twilight SDK
  • Web Components
  • Ecommerce Events
  • Component Bundle
  • Checkout APIs
  • Change Log
App Functions
Partner APIs
Partner APIs
  • App API
  • Shipments & Fulfillment APIs
  • Salla AWB
  • Recurring Payments API
  • Billing System Salla partners
  • Communication Apps
Dev Tools
Dev Tools
  • Partners Agent Kit
  • Salla Apps Playbook
  • Salla CLI
Salla - Opensource
Salla - Developers Community
  1. Nav Module

Add Navbar Item

The addNavItem method injects a custom sub-navigation item into the Merchant Dashboard sub-nav area and resolves with your immutable value for that parent row.
Use this when your embedded app needs host-level tabs (for example, Overview, Settings, Logs) that stay visually integrated with dashboard navigation. You can inject a flat tab or a tab with a one-level dropdown by passing optional children (same shape as the root item, without nested children).

Usage#

addNavItem is asynchronous and resolves once the host acknowledges item creation.

Tab with dropdown (one level of children)#

Every value must be globally unique among all injected parents and children. Parent and child rows can be updated or removed by that same value via updateNavItem / removeNavItem. To replace the dropdown list on a parent, call updateNavItem on the parent with a new children array.

API Reference#

embedded.nav.addNavItem(item)#

PropertyTypeRequiredDescription
titlestringYesLabel shown in the sub-nav.
valuestringYesStable, unique key for this row (and for updateNavItem / removeNavItem / click payloads).
urlstringYesURL associated with the tab.
disabledbooleanNoWhether the item is disabled initially.
activebooleanNoWhether the item should be active initially.
childrenarrayNoOptional one-level submenu. Each entry has title, value, url, and optional disabled / active. Nested children are not allowed.

Return Value#

Promise<{ value: string }>
value: Immutable identifier for the parent row you added (updateNavItem, removeNavItem, and onNavItemClick all use this key).
💡
Best Practices
Persist value: Store result.value for updateNavItem(), removeNavItem(), and matching onNavItemClick payloads.
Use Stable Values: Keep value semantic and stable (e.g., "logs-tab"), since it is the primary key for parent and child rows.
One Active Item: If setting active: true on the root item, ensure this reflects your real app state for clear UX.
Modified at 2026-05-17 13:41:04
Previous
Clearing Navbar Actions
Next
Update Navbar Item