Events

annotationNote.press

Detailed viewer event reference for annotationNote.press.

Summary

  • Category: Annotations
  • Event: annotationNote.press
  • Trigger: Fires when a note annotation is pressed.

Payload

[ { annotationId?: string; pageIndex?: number; nativeEvent?: PointerEvent }, ]

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('annotationNote.press', payload);
}

instance.addEventListener('annotationNote.press', onEvent);
instance.removeEventListener('annotationNote.press', onEvent);