A promise that resolves to true if the contact panel was closed.
Get the current service points
A promise that resolves to the current service points
Check if the contact panel is open.
A promise that resolves to true if the contact panel is open.
Open the contact panel with an optional channel.
Optionalchannel: "chat" | "mail" | "digital-assistant"The channel to open, either 'chat' or 'mail'. If no channel is specified, the contact panel overview is opened.
A promise that resolves to true if the contact panel was opened.
Reset the service points to the initial values from the configuration.
A promise that resolves when the service points have been reset.
Set the service points
A promise that resolves to the set service points
const updatedServicePoints = await globalHeaderClient.contact.setServicePoints({
displayMode: "grouped",
groupLabel: "Neem contact op met een woonmaatschappij",
contextual: [
{ type: "contactOption", contactGroupId: "OVO002919" },
{ type: "contactOption", contactGroupId: "OVO002884" },
{ type: "contactOption", contactGroupId: "OVO002940" },
{ type: "contactOption", contactGroupId: "OVO039151" },
{ type: "contactOption", contactGroupId: "OVO025805" },
{ type: "contactOption", contactGroupId: "OVO002499" },
{ type: "link", href: "https://www.vlaanderen.be/wonen-in-vlaanderen/zoek-een-organisatie/", label: "Zoek een woonmaatschappij in uw buurt" }
],
defaults: [
{ type: "contactOption", contactGroupId: "vlaanderen", label: "Algemene contactopties van de Vlaamse overheid" },
{ type: "link", href: "https://www.google.be" }
]
});
Toggle the contact panel.
A promise that resolves to true if the contact panel is now open.
Close the contact panel.