Retrieves the current set of custom header items that are configured in the chat widget. You can use the output to access and inspect the custom menu items that are currently displayed in the chat header.
The following example gets current custom header items:
// Get current custom header itemsconst currentItems = instance.getCustomHeaderItems();console.log('Current header items:', currentItems);// Check if a specific item existsconst hasHelpButton = currentItems.some(item => item.id === 'help-button');
Do you need practical examples?
Learn how to apply the features available for embedded chat into your implementation with guidance and examples.