1. Elements
Salla Platform Docs
  • Overview
  • Usage
  • Components Customization
  • Predefined vs Bundle Components
  • Elements
    • Conditional Fields
    • Count Down
    • Filters
    • Infinite Scroll
    • List Tile
    • Loading
    • Map
    • Placeholder
    • Progress Bar
    • Rating Stars
    • Skeleton
    • Slider
    • Social Share
    • Tabs
    • Apps Icons
    • Breadcrumb
    • Social
    • Reviews
    • Reviews Summary
    • Color Picker
    • Modal
    • Sheet
    • Notifications
  • Form
    • Button
    • Date Time Picker
    • Tel Input
    • Select
    • File Upload
    • Menu
    • Bottom Alert
    • Contacts
    • Quantity Input
    • Edit Order Button
  • Product
    • Product Card
    • Quick Buy
    • Meta Data
    • Payments
    • Comments
    • Orders
    • Conditional Offer
    • Installment
    • Add Product
    • Gifting
    • Offer
    • Offer Modal
    • Product Availability
    • Products List
    • Product Options
    • Product Size Guide
    • Products Slider
    • Quick Order
    • Scopes
    • Search
    • Advertisement
    • Multiple Bundle Product
    • Order Details
  • User
    • Cart Summary
    • User Menu
    • User Profile
    • Localization
    • Login
    • Loyalty
    • Rating
    • User Settings
    • Verify
  • Component Bundle
    • Directory Structure
    • Create Bundle
    • Setup Bundle
    • Publish Bundle
    • Publish Bundle Requirements
    • Getting Started
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. Elements

Modal

The <salla-modal> web component displays a dialog box or pop-up window on top of the current page. It is positioned above all other components in the application, restricting scrolling of the main page and only allowing scrolling of the modal's content. It consists of a Button component to activate the modal, and that can be customized using the properties, events, methods and slots' parameters available.

Example#

Modal Example

Usage#

HTML
SASS

Properties#

PropertyAttributeDescriptionTypeDefault
CeneteredceneteredAligns the modal's content to be in center viewboolean'false'
Has Skeletonhas-skeletonOpens the modal on rendering the componentboolean'false'
Icon Styleicon-styleSets the modal's header icon style."error" | "success" |"normal" | "primary"'undefined'
Is Closableis-closableSets the modal to be at the closing stateboolean'true'
Is Loadingis-loadingShows the loading state in the modalboolean'false'
No Paddingno-paddingAdds no Padding to the modalboolean'false'
PositionpositionPositions the modal in a fixed part of the screen"bottom" | "middle" | "top"'middle'
Sub Titlesub-titleSets the modal subheader contextstring''
Sub Title Firstsub-title-firstWhether or not to show the subtitle before the titleboolean'false'
VisiblevisibleShows the modal on rendering the componentboolean'false'
WidthwidthAdjusts the size of the modal"full" | "lg" | "md" | "sm" | "xl" | "xs"'md'

Methods#

The pre-defined methods allow for calling functions built by Salla to carry out certain actvities, such as close which closes the modal dialog.
MethodDescriptionReturn Type
close()Closes the modal dialogPromise<HTMLElement>
loading()Loads the modal dialogPromise<HTMLElement>
setTitle(modalTitle: any)Sets the title of the modal dialogPromise<HTMLElement>
open()Opens the modal dialogPromise<HTMLElement>
stopLoading()Stops loading the modal dialogPromise<HTMLElement>
Note
To use a method, you can for instance use open the component via the method:
and close the component via the method:

Slots#

Theslots makes it customizable to modify certain labels, such as footer
SlotDescription
footerFooter of the modal

Events#

EventDescriptionType
modalVisibilityChangedThis event will be fired when the modal visibilty is changedCustomEvent<Boolean>
Modified at 2026-07-09 11:27:26
Previous
Color Picker
Next
Sheet