Events
annotationSelectionChange
Detailed compatibility event reference for annotationSelectionChange.
Summary
- Category: Compatibility
- Event:
annotationSelectionChange - Trigger: Fires when selected annotations change.
Payload
{ annotations: PdfAnnotation[] }
Payload fields
| Field | Type | Required |
|---|---|---|
annotations | PdfAnnotation[] | Yes |
Subscription example
function onEvent(payload) {
console.log('annotationSelectionChange', payload);
}
instance.on('annotationSelectionChange', onEvent);
instance.off('annotationSelectionChange', onEvent);