Skip to content

Checklists

Shows a checklist. If another checklist is visible, it is replaced. The user must be identified first.

type launchChecklist = (
checklistId: number,
options?: {
itemsShown?: boolean
},
) => void
checklistIdnumberrequired

The checklist ID from the panel.

options.itemsShownbooleandefault: false

When true, the checklist opens expanded with its items visible. Otherwise only the launcher is shown.

window.userGuiding.launchChecklist(1234)

Opens the active checklist so its items are visible.

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

Closes the active checklist’s item list and leaves its launcher on the page.

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

Removes the active checklist and its launcher from the page.

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

Returns the progress of every checklist for the current user.

type getChecklistCompletionInfo = () => {
id: number
items: string[]
completedItems: string[]
incompleteItems: string[]
}[]
idnumber

Checklist ID.

itemsstring[]

IDs of every item in the checklist.

completedItemsstring[]

IDs of the items the user has completed.

incompleteItemsstring[]

IDs of the items the user has not completed yet.

const progress = window.userGuiding.getChecklistCompletionInfo()

Use onChecklistComplete, onChecklistItemTrigger, onChecklistUrlClick and onChecklistDismiss to react to checklist activity.