本文档由 Apifox 自动生成,推荐使用 Apifox - API 文档、API 调试、API Mock、API 自动化测试!
<salla-gifting>
web component is used to display items as gifts, which can be used after the customer has completed a purchase. It can be customized using the properties' parameters available.
Property | Attribute | Description | Type | Default |
---|---|---|---|---|
Product ID | product-id | The product id for which the gifting system is required. | number | undefined |
Widget Title | widget-title | The Widget's title value | string | undefined |
Widget Subtitle | widget-subtitle | The Widget's subtitle value | string | undefined |
methods
allow for calling functions built by Salla to carry out certain actvities, such as currencywidget-btn-content
which is used to customize the widget's button content.Method | Description | Return Type |
---|---|---|
close() | Hides / closes the gifting modal window. | Promise<HTMLElement> |
goToStep2() | Go to the step 2 in the gifting system. | Promise<void> |
open() | Shows / opens the gifting modal window. | Promise<any> |
slots
makes it customizable to modify certain labels, such as currencywidget-btn-content
.Slot | Description |
---|---|
currencywidget-btn-content | It is used to customize the widget's button content. |
扫码加入 Apifox 微信交流群
在这里,获得 Apifox 使用上的任何帮助,快速上手让你的研测效率得到大幅提升