Skip to content

Resource Center

Opens a Resource Center. If another one is active, it closes and the requested one opens.

type launchResourceCenter = (
resourceCenterId: number,
options?: {
bypassFilters?: boolean
sidebarOpen?: boolean
tab?: 'home' | 'knowledgeBase' | 'aiAssistant' | 'productUpdates'
articleId?: string
checklistId?: number
},
) => void
resourceCenterIdnumberrequired

The Resource Center ID from the panel.

options.bypassFiltersbooleandefault: true

When true, the Resource Center opens without checking its rules. Set it to false to check page targeting, audience segments and scheduling first.

options.sidebarOpenbooleandefault: false

When true, the Resource Center opens expanded instead of showing only its launcher.

options.tabstring

Opens on this tab instead of the default one: home, knowledgeBase, aiAssistant or productUpdates.

options.articleIdstring

Opens this Knowledge Base article. Only works together with tab: 'knowledgeBase'.

options.checklistIdnumber

Opens this checklist module on the home tab. It must be a checklist configured in the target Resource Center. Otherwise the Resource Center opens normally and logs a [UserGuiding] warning. Setting it forces the home tab.

window.userGuiding.launchResourceCenter(1234)

Expands the active Resource Center.

type expandResourceCenter = () => void
window.userGuiding.expandResourceCenter()

Collapses the active Resource Center back to its launcher.

type collapseResourceCenter = () => void
window.userGuiding.collapseResourceCenter()

Removes the active Resource Center, including its launcher, from the page.

type hideResourceCenter = () => void
window.userGuiding.hideResourceCenter()

Use the Resource Center callbacks to react when users start guides, surveys or links from inside it.