Rating
<salla-rating-modal>
web component is used to display the rating scale for a store, product, or shipping company. It consists of a Modal activated by the Button component, and that can be customized using the properties' parameters available.Example

Usage
HTML
SASS
Properties
Property | Attribute | Description | Type | Default |
---|---|---|---|---|
Order ID | order-id | The Order ID as an input for rating | number | 'salla.config.get('page.id')' |
Methods
methods
allow for calling functions built by Salla to carry out certain actvities, such as open
and/or close
the Rating Component.Method | Description | Return Type |
---|---|---|
close() | Closes the rating component | Promise<HTMLElement> |
open() | Opens the rating component | Promise<NodeJS.Timeout> |
Tip
open
the component via the event:
close
the component via the event:
Modified at 2025-03-04 12:54:02