Events
toolbar.annotationItemsChange
Detailed viewer event reference for toolbar.annotationItemsChange.
Summary
- Category: Toolbar
- Event:
toolbar.annotationItemsChange - Trigger: Fires when annotation toolbar items change.
Payload
[ToolbarItemsChangeEvent];
Payload fields
Payload is not an object literal. Use the declaration above and runtime guards when handling this event.
Subscription example
function onEvent(payload) {
console.log('toolbar.annotationItemsChange', payload);
}
instance.addEventListener('toolbar.annotationItemsChange', onEvent);
instance.removeEventListener('toolbar.annotationItemsChange', onEvent);