Events
annotations.focus
Detailed viewer event reference for annotations.focus.
Summary
- Category: Annotations
- Event:
annotations.focus - Trigger: Fires when annotations receive focus/selection.
Payload
[ImmutableList<Annotation>];
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('annotations.focus', payload);
}
instance.addEventListener('annotations.focus', onEvent);
instance.removeEventListener('annotations.focus', onEvent);