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: 
扫码加入 Apifox 微信交流群
在这里,获得 Apifox 使用上的任何帮助,快速上手让你的研测效率得到大幅提升

扫码加入交流群Modified at 2025-02-20 07:53:20