Skip to main content

openWidget

The openWidget function opens the widget and displays linking options to the tenant.

Parameters:

  • tenantId: string?
    • A string identifier for the tenant. If the tenantId is set during initialization, this parameter becomes optional.
We recommend setting the tenantId at initialization time in order to prefetch the tenant’s information.

Examples:

// Initialize without pre-configured tenant
const hotglue = new Hotglue({
    environmentId: '<ENV ID>',
    apiKey: '<PUBLIC API KEY>'
});
hotglue.openWidget('exampleTenantId');


const hotglue = new Hotglue({
    tenantId: 'preConfiguredTenantId',
    environmentId: '<ENV ID>',
    apiKey: '<PUBLIC API KEY>'
});
hotglue.openWidget();
I