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

Create Navbar Action

The setAction method allows you to inject a primary action button into the dashboard's top navigation bar. This is the best place for "Create", "Save", or "Export" buttons.

Usage#

You can configure a simple button or a complex button with a dropdown menu.
Simple Button
With Dropdown
A single primary button.

API Reference#

OptionTypeRequiredDescription
titlestringYesThe text displayed on the button.
valuestringYesIdentifier passed to the onActionClick listener.
iconstringNoClass name for a Salla icon (e.g., salla-icon-save).
disabledbooleanNoWhether the button is grayed out and unclickable.
extendedActionsarrayNoList of objects for the dropdown menu.

Extended Action Object#

Each item in the extendedActions array can have:
OptionTypeRequiredDescription
titlestringYesThe text displayed for the dropdown action item.
valuestringYesIdentifier passed to the onActionClick listener.
subTitlestringNoSmaller text displayed below the title.
iconstringNoClass name for an associated icon.
disabledbooleanNoWhether the action is grayed out and unclickable.
Best Practices
Action-Oriented Titles: Use clear verbs like "Save Changes", "Add Item", or "Export".
Standard Icons: Use familiar icons from the Salla design system to maintain a native feel.
State Sync: If your app is loading or a form is invalid, set disabled: true on your navbar action.
Single Handler: Use onActionClick to handle all action clicks in one place for cleaner code.
Modified at 2026-05-17 09:11:03
Previous
Set Page Title
Next
Listen for Navbar Actions