Skip to content

HeaderDom.addNavButton method

HeaderDom › addNavButton

Unofficial

Add a navigation button to the header.

Signature:

addNavButton(icon: string, title: string, onClick: ($event: MouseEvent) => unknown, className?: string): HTMLDivElement

Parameters:

ParameterTypeDescription
iconstringThe button icon.
titlestringThe tooltip text.
onClick($event: MouseEvent) => unknownThe click handler.
className?stringAn additional CSS class.

Returns: HTMLDivElement — The created navigation button element.