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

Update Navbar Item

The updateNavItem method updates a previously injected sub-nav parent or child using its immutable value.
Use it to rename rows, toggle disabled state, switch active state, patch URLs, or (on a parent only) replace the full children list. The value field itself cannot be changed; remove and re-add to use a new key.

Usage#

Replace dropdown children (parent only)#

API Reference#

embedded.nav.updateNavItem(item)#

PropertyTypeRequiredDescription
valuestringYesImmutable key of the parent or child row (addNavItem root value or a child’s value).
titlestringNoNew item label.
urlstringNoNew URL for the item.
disabledbooleanNoDisable or re-enable the item.
activebooleanNoToggle active visual state.
childrenarrayNoParent only: replaces the entire submenu list. Ignored when patching a child row.

Notes#

At least one field besides value should be provided (including children when you only want to replace the list).
Unknown values are ignored safely by the host.
Setting one injected item to active: true clears active on other injected parent tabs; for a child, other children under the same parent are cleared when that child becomes active.
value is not patchable; remove + addNavItem to change it.
💡
Best Practices
Patch Minimal Fields: Send only fields you want to change to keep intent clear.
Keep App State Source of Truth: Derive active from your internal route/view state.
Graceful Unknown Values: If your app can reload, guard update calls when stored values are missing.
Modified at 2026-05-17 13:42:51
Previous
Add Navbar Item
Next
Listen for Navbar Item Click