For AI agents: Find a documentation index at https://talkjs.com/llms.txt (full content at https://talkjs.com/llms-full.txt). Get a markdown version of any page by appending .md to its URL path.
HtmlPanel
Embed and control custom HTML content inside your chat UI.
HTML Panel HTML panels should only be created through Inbox.createHtmlPanel, Chatbox.createHtmlPanel or Popup.createHtmlPanel.
| destroy | Destroys the HTML panel |
| hide | Hides the panel if it's visible. |
| isVisible | Returns |
| setHeight | Changes the panel height. |
| show | Shows the panel if it's hidden. |
This promise resolves when the "DOMContentLoaded" event fires on the iframe's window.
The HTML Panel iframe's window object
This promise resolves when the "load" event fires on the iframe's window.
htmlPanel.destroy(): Promise<void>
Destroys the HTML panel
Returns
htmlPanel.hide()
Hides the panel if it's visible.
Returns
htmlPanel.isVisible(): boolean
Returns true if the panel is visible, false if it's hidden or destroyed
Returns
htmlPanel.show()
Shows the panel if it's hidden.