chatty-email-continue khai báo 5 attribute, 1 property không có attribute, 1 event, 1 slot, 4 part và 2 CSS custom property.
Import 1 module @avada/chatty-ui/elements/email-continue.js là define chatty-email-continue; chunk chỉ import element nó dùng. Prototype chuẩn: trong guide.
Đổi tên attribute, event, slot, part hay CSS custom property là đổi API: diff của custom-elements.json phải có trong 1 MR.
On this page
Overview
In-chat card that emails the conversation so the shopper can continue by replying. A known email is shown as text; otherwise the card asks for one and validates it before sending. The host sends the email; it sets loading while sending, then sent-to or failed. Class ChattyEmailContinue.
Attributes
Name
Property
Type
Default
Description
email
email
string
''
Email already on the conversation; shown as text instead of the input.
value
value
string
''
Prefilled input value.
loading
loading
boolean
false
Sending: the button shows a spinner and repeat sends are blocked.
failed
failed
boolean
false
Shows the send-failure message (role alert).
sent-to
sentTo
string
''
Recipient once sent; replaces the card with the receipt.
Properties
Attributes also expose the properties listed in the Property column above.