Salla Docs
Merchant
Merchant
  • Merchant API
  • Salla OAuth 2.0
  • Merchant Dashboard
Partner APIs
Partner APIs
  • App API
  • Shipments & Fulfillment APIs
  • Salla AWB
  • Recurring Payments API
  • App Functions
  • Billing System Salla partners
Storefront
Storefront
  • Twilight Engine
  • Twilight SDK
  • Web Components
  • Ecommerce Events
  • Change Log
Salla CLI
Merchant
Merchant
  • Merchant API
  • Salla OAuth 2.0
  • Merchant Dashboard
Partner APIs
Partner APIs
  • App API
  • Shipments & Fulfillment APIs
  • Salla AWB
  • Recurring Payments API
  • App Functions
  • Billing System Salla partners
Storefront
Storefront
  • Twilight Engine
  • Twilight SDK
  • Web Components
  • Ecommerce Events
  • Change Log
Salla CLI
Salla - Opensource
Salla - Developers Community
  1. Nav Module
  • Embedded SDK
    • Overview
    • Getting Started
    • Installation
    • Authentication
    • App Design Guidelines
    • Create an Embedded App
    • Playground
  • Auth Module
    • Get Token
    • Client Introspect
    • Refresh Token
  • Page Module
    • Iframe Resizing
    • External Redirects
    • Navigation
    • Set Page Title
    • UI Module
      • Confirm Dialogs
      • Toast Notifications
      • Loading States
  • Nav Module
    • Create Navbar Action
    • Listen for Nav Actions
    • Clearing Nav Actions
  • Endpoints
    • Token Introspect
      POST
  • Resources
    • Support
Merchant
Merchant
  • Merchant API
  • Salla OAuth 2.0
  • Merchant Dashboard
Partner APIs
Partner APIs
  • App API
  • Shipments & Fulfillment APIs
  • Salla AWB
  • Recurring Payments API
  • App Functions
  • Billing System Salla partners
Storefront
Storefront
  • Twilight Engine
  • Twilight SDK
  • Web Components
  • Ecommerce Events
  • Change Log
Salla CLI
Merchant
Merchant
  • Merchant API
  • Salla OAuth 2.0
  • Merchant Dashboard
Partner APIs
Partner APIs
  • App API
  • Shipments & Fulfillment APIs
  • Salla AWB
  • Recurring Payments API
  • App Functions
  • Billing System Salla partners
Storefront
Storefront
  • Twilight Engine
  • Twilight SDK
  • Web Components
  • Ecommerce Events
  • Change Log
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-02-02 10:34:37
Previous
Nav Module
Next
Listen for Nav Actions