Represents a command to stop Showcase for a product when it is already initialized, and you want to destroy it.
This class sends a command to the Metabox API to stop showcase for a product if it is already initialized.
To listen for changes after sending this command, listen to the 'showcaseStatusChanged' event.
What does it unlock?
Stops the showcase/timeline playback and closes the showcase mode. Returns to normal configurator view.
Practical Application
Stops showcase playback and exits showcase mode entirely. Returns to normal interactive configurator view.
Use for 'Exit Demo' buttons or auto-trigger when the user starts actively configuring the product.
AI Coding Best Practices
Call api.sendCommandToMetabox(new StopShowcase()). Fully resets the showcase state. Subscribe to
showcaseStatusChanged to confirm 'stopped' status. After stopping, the configurator returns to full
interactive mode — re-enable configuration controls.
//Subscribe to the event before sending the command to ensure you capture the response api.addEventListener('showcaseStatusChanged', (data:ShowCaseStatus) => { console.log('Showcase status value after changed:', data); });
Represents a command to stop Showcase for a product when it is already initialized, and you want to destroy it. This class sends a command to the Metabox API to stop showcase for a product if it is already initialized.
To listen for changes after sending this command, listen to the 'showcaseStatusChanged' event.
What does it unlock?
Stops the showcase/timeline playback and closes the showcase mode. Returns to normal configurator view.
Practical Application
Stops showcase playback and exits showcase mode entirely. Returns to normal interactive configurator view. Use for 'Exit Demo' buttons or auto-trigger when the user starts actively configuring the product.
AI Coding Best Practices
Call
api.sendCommandToMetabox(new StopShowcase()). Fully resets the showcase state. Subscribe to showcaseStatusChanged to confirm 'stopped' status. After stopping, the configurator returns to full interactive mode — re-enable configuration controls.Example