Detailed description and instance code of the WeChat mini-program component contact-button (Customer Service session button), and the mini-program contactbutton

Source: Internet
Author: User

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!

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.