Skip to main content
A DOM element that serves as the container for the custom panel content. Set its innerHTML or append child elements to control what is displayed inside the panel. The host element persists across open and close calls. To display different content on successive opens, replace the innerHTML or clear and re-append child nodes before calling customPanel.open().

Type

Example

The following example populates the host element with custom HTML before opening the panel:
The following example swaps panel content without closing and reopening the panel:

Do you need practical examples?

Learn how to apply the features available for embedded chat into your implementation with guidance and examples.