Represents a command to hide measurement for a product when it is already loaded.
This class sends a command to the Metabox API to hide measurement for a product if it is already initialized.
What does it unlock?
Hides the measurement overlay. Executes unconditionally to hide the UI controls.
Practical Application
Hides the measurement/dimension overlay. Use when transitioning from a technical spec view back to a clean
product presentation, or to keep consumer-facing configurators visually clean.
AI Coding Best Practices
Call api.sendCommandToMetabox(new HideMeasurement()). No parameters. Pair with ShowMeasurement as a toggle.
Track visibility state in your app state to keep toggle buttons in sync.
Represents a command to hide measurement for a product when it is already loaded. This class sends a command to the Metabox API to hide measurement for a product if it is already initialized.
What does it unlock?
Hides the measurement overlay. Executes unconditionally to hide the UI controls.
Practical Application
Hides the measurement/dimension overlay. Use when transitioning from a technical spec view back to a clean product presentation, or to keep consumer-facing configurators visually clean.
AI Coding Best Practices
Call
api.sendCommandToMetabox(new HideMeasurement()). No parameters. Pair with ShowMeasurement as a toggle. Track visibility state in your app state to keep toggle buttons in sync.Example