Methods related to the Aanmelden menu.
Methods related to the branding of the widget. This includes:
Methods related to the hulp nodig? menu.
Get the current configuration. This is the configuration for the widget ID given in the embed or entry script.
A promise that resolves to the current configuration. If an error occurs during retrieval, the promise will be rejected with an error message.
Methods related to the language switcher.
The language switcher is a separate extension in the configuration (similar to
the contact and access_menu extensions) and has its own configuration.
For it to work and be visible, ensure all of the following:
{
enabled: true,
pluginTypeId: 'language_switcher',
}
nl, fr).nl, fr).If any of the above conditions are not met, nothing will be shown.
Mount the Global Header Widget.
Optionalelement: HTMLElementThe element to mount the widget to. If omitted, mounts at the top of the page.
A boolean indicating if the widget was mounted successfully.
Enable or disable navigation within the global header. When navigation is disabled, all interactive elements like the access menu, contact menu, and header links will not work or be hidden.
This is useful for scenarios like consent screens, where you don't want users to navigate away from the page by clicking on the header.
A boolean value indicating whether navigation should be enabled (true) or disabled (false).
A promise that resolves to a boolean, confirming if the navigation state was successfully updated.
Unmount the Global Header Widget.
A boolean indicating if the widget was unmounted successfully.
The
window.globalHeaderClientobject offers several methods for interacting with the widget. Each method is typed and returns promises, making asynchronous operations easier to handle.