Skip to main content
Requires usertour.js 0.0.20 or later.
The closeResourceCenter() method collapses the resource center panel back to its launcher. If the resource center is already collapsed, this call is a no‑op. If no resource center is currently active for the user, the call has no effect.

Parameters

None.

Returns

void

Example

// Collapse the resource center when the user navigates to a focus mode
enterFocusMode(() => {
  usertour.closeResourceCenter();
});
Make sure to call init() before using any other Usertour.js methods.