The <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#
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#
The pre-defined 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> |
To use a method, you can for instance open
the component via the event:and close
the component via the event: Modified at 2025-03-04 12:54:02