Skip to main content

activeExperiences()

Returns a list of visible experiences and related information.

Useful for checking if any CommandBar Widgets are open before popping a native modal.

Example

window.CommandBar.activeExperiences();
/*
* [
* {
* type: "spotlight",
* },
* {
* type: "helphub",
* },
* {
* type: "checklist",
* id: 1,
* },
* {
* type: "nudge",
* id: 3,
* step: 2,
* }
* ]
*/