The checklist ID from the panel.
Checklists
launchChecklist
Section titled “launchChecklist”Shows a checklist. If another checklist is visible, it is replaced. The user must be identified first.
type launchChecklist = ( checklistId: number, options?: { itemsShown?: boolean },) => voidchecklistIdrequiredoptions.itemsShownWhen true, the checklist opens expanded with its items visible. Otherwise only the launcher is shown.
window.userGuiding.launchChecklist(1234)window.userGuiding.launchChecklist(1234, { itemsShown: true })expandChecklist
Section titled “expandChecklist”Opens the active checklist so its items are visible.
type expandChecklist = () => voidwindow.userGuiding.expandChecklist()collapseChecklist
Section titled “collapseChecklist”Closes the active checklist’s item list and leaves its launcher on the page.
type collapseChecklist = () => voidwindow.userGuiding.collapseChecklist()hideChecklist
Section titled “hideChecklist”Removes the active checklist and its launcher from the page.
type hideChecklist = () => voidwindow.userGuiding.hideChecklist()getChecklistCompletionInfo
Section titled “getChecklistCompletionInfo”Returns the progress of every checklist for the current user.
type getChecklistCompletionInfo = () => { id: number items: string[] completedItems: string[] incompleteItems: string[]}[]idChecklist ID.
itemsIDs of every item in the checklist.
completedItemsIDs of the items the user has completed.
incompleteItemsIDs of the items the user has not completed yet.
const progress = window.userGuiding.getChecklistCompletionInfo()[ { "id": 11719, "items": ["82ef304a-63a1-4ff4-aacb-4f656420b478"], "completedItems": [], "incompleteItems": ["82ef304a-63a1-4ff4-aacb-4f656420b478"] }]Related callbacks
Section titled “Related callbacks”Use onChecklistComplete, onChecklistItemTrigger, onChecklistUrlClick and onChecklistDismiss to react to checklist activity.