Symbols
Open, close, or toggle the viewer symbols panel from the host application.
Use `symbolsControl` when the host needs to control the symbols panel inside the active viewer session.
This integration is command-based. The host sends `open`, `close`, or `toggle` to the current iframe session and can include an optional `requestId` for correlation.
If you need to manage the reusable symbol library itself, use the separate Symbol Management Admin module instead of the placement message flow.
- Command-based: Use `open`, `close`, or `toggle` depending on the panel state you want.
- Viewer session scoped: Send the command to the same iframe instance that owns the current document.
- Observable result: Watch `symbolsControlResult` to confirm whether the panel ended up opened or closed.
Send `symbolsControl` with the required `command` field.
Open Symbols Panel
Close Symbols Panel
Toggle Symbols Panel
The viewer emits `symbolsControlResult` after it applies the command.
Use the returned payload to confirm success, inspect the resolved command, and determine whether the panel is open through the `opened` flag.
Handle symbolsControlResult
Keep the host flow simple and send the command only after the viewer is ready.
- 11. Wait for viewer readiness: Make sure the iframe is loaded and the viewer session is active.
- 22. Send a symbols command: Use `open`, `close`, or `toggle` based on the interaction your product needs.
- 33. Observe the result: Listen for `symbolsControlResult` and read `opened` to confirm the final panel state.
- 44. Correlate when needed: Include `requestId` if your host needs to match requests and results in logs.
This example wires three host buttons to the current viewer iframe and logs the result event.
Continue with related placement workflows.
- Stamp: Stamp
- Placement API: API References
- Viewer Setup: Canvas
- Admin Library Management: Symbol Management Admin Module
