本文档由 Apifox 自动生成,推荐使用 Apifox - API 文档、API 调试、API Mock、API 自动化测试!
<salla-social-share> web component is used to display a menu with social media platforms and sharing capabilities in the form of email and copyable links. This can be customized using the properties' parameters.| Property | Attribute | Description | Type | Default |
|---|---|---|---|---|
| Platforms | platforms | Selected platforms to share the content on, such as Facebook, Twitter, WhatsApp, Email, and shareable link | string | 'facebook,twitter,whatsapp,email,copy_link' |
| URL | url | Custom Page URL that is to be shared | string | "" |
| URL Name | url-name | Custom Page URL name that is be shared | string | "" |
methods allow for calling functions built by Salla to carry out certain actvities, such as open which opens or activates the share menu.| Method | Description | Return Type |
|---|---|---|
open() | Opens / Activates the share menu | Promise<void> |
refresh() | Refreshs the URL and URL Name after re-rendering the component | Promise<void> |
slots makes it customizable to modify certain labels, such as widget.| Slot | Description |
|---|---|
widget | An action that can be used to activete or open the component by calling the open method. |
扫码加入 Apifox 微信交流群
在这里,获得 Apifox 使用上的任何帮助,快速上手让你的研测效率得到大幅提升

扫码加入交流群