The Resource Center ID from the panel.
Resource Center
launchResourceCenter
Section titled “launchResourceCenter”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 },) => voidresourceCenterIdrequiredoptions.bypassFiltersWhen true, the Resource Center opens without checking its rules. Set it to false to check page targeting, audience segments and scheduling first.
options.sidebarOpenWhen true, the Resource Center opens expanded instead of showing only its launcher.
options.tabOpens on this tab instead of the default one: home, knowledgeBase, aiAssistant or productUpdates.
options.articleIdOpens this Knowledge Base article. Only works together with tab: 'knowledgeBase'.
options.checklistIdOpens 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)window.userGuiding.launchResourceCenter(1234, { bypassFilters: false, sidebarOpen: true,})window.userGuiding.launchResourceCenter(1234, { tab: 'knowledgeBase', articleId: '123', sidebarOpen: true,})window.userGuiding.launchResourceCenter(1234, { checklistId: 5678, sidebarOpen: true,})window.userGuiding.launchResourceCenter(1234, { tab: 'productUpdates', sidebarOpen: true,})expandResourceCenter
Section titled “expandResourceCenter”Expands the active Resource Center.
type expandResourceCenter = () => voidwindow.userGuiding.expandResourceCenter()collapseResourceCenter
Section titled “collapseResourceCenter”Collapses the active Resource Center back to its launcher.
type collapseResourceCenter = () => voidwindow.userGuiding.collapseResourceCenter()hideResourceCenter
Section titled “hideResourceCenter”Removes the active Resource Center, including its launcher, from the page.
type hideResourceCenter = () => voidwindow.userGuiding.hideResourceCenter()Related callbacks
Section titled “Related callbacks”Use the Resource Center callbacks to react when users start guides, surveys or links from inside it.