Detailed description and instance code of the contact-button (Customer Service session button) component of the applet, and contactbutton of the Applet
Contact-button
Contact-button
The customer service session button is used to display a customer service session button on the page. After you click this button, the customer service session is displayed.
Attribute name |
Type |
Default Value |
Description |
Size |
Number |
18 |
Session button size, valid value 18-27, unit: px |
Type |
String |
Default-dark |
The style type of the session button. Valid values: default-dark and default-light. |
Session-from |
String |
|
When a user enters a session from this button, the developer will receive an event push with this parameter. This parameter can be used to differentiate the sources of user access to customer service sessions. |
Sample Code
<Contact-button type = "default-light" size = "20" session-from = "weapp"> </contact-button>
Related APIs: For details, see the customer service message interface documentation.
Thank you for reading this article. I hope it will help you. Thank you for your support for this site!