A promise that resolves when the footer has been collapsed.
Expands the footer.
A promise that resolves when the footer has been expanded.
Gets the configuration object.
A promise that resolves to the configuration object.
Gets the host.
Gets the language links.
A promise that resolves to an array of language links.
Gets the navigation links.
A promise that resolves to an array of navigation links.
Gets the site information.
Gets the site subtitle.
A promise that resolves to the site subtitle as a string.
Gets the site title.
A promise that resolves to the site title as a string.
Gets the umbrella configuration.
Checks if the footer is collapsed.
A promise that resolves to a boolean indicating if the footer is collapsed.
Checks if the footer is collapsible.
A promise that resolves to a boolean indicating if the footer is collapsible.
The mount method allows you to control where the Global Footer Widget is rendered on the page. There are two main ways to integrate the widget, depending on whether you want to manually control its placement or let it render automatically:
Using the 'entry' script: When you include the widget via the following script:
<script src="https://widgets.vlaanderen.be/api/v2/widget/__global_footer_id__/entry"></script>
The widget is not automatically rendered on the page. Instead, you must call the mount method from the window.globalFooterClient object to display it. This gives you control over where and when the widget is added. You can either:
Mount to a specific element:
Pass an HTML element to the mount method to render the widget inside that element.
const element = document.getElementById('customFooter');
window.globalFooterClient.mount(element);
Mount without specifying an element: If no element is provided, the widget will automatically render at the bottom of the page.
window.globalFooterClient.mount();
Using the 'embed' script: If you use this script instead:
<script src="https://widgets.vlaanderen.be/api/v2/widget/__global_footer_id__/embed"></script>
The widget will automatically render at the location where the script is placed in the HTML. No additional action is needed to mount the widget in this case. For accessibility reasons, the footer is marked with role="contentinfo". If you prefer not to include this role (e.g., to avoid multiple contentinfo roles on a page), use the mount method described above with a <div> element.
Optionalelement: HTMLElementThe element to mount
A promise that resolves to true if the element was mounted, false otherwise
Sets whether the footer is collapsible.
A boolean indicating if the footer should be collapsible.
A promise that resolves when the collapsible state has been set.
Sets the host.
The host to set.
A promise that resolves when the host has been set.
Sets the language links.
An array of language links to set.
A promise that resolves when the language links have been set.
Sets the navigation links.
An array of navigation links to set.
A promise that resolves when the navigation links have been set.
Sets the site information.
The site information object to set.
A promise that resolves when the site information has been set.
Sets the site title.
The site title to set.
A promise that resolves when the site title has been set.
Sets the umbrella configuration.
The umbrella configuration to set.
A promise that resolves when the umbrella has been set.
Toggles the collapsed state of the footer.
A promise that resolves when the collapsed state has been toggled.
Unmount an element
A promise that resolves to true if the element was unmounted, false otherwise
Collapses the footer.