Events

selectionChange

Detailed compatibility event reference for selectionChange.

Summary

  • Category: Compatibility
  • Event: selectionChange
  • Trigger: Fires when text selection changes.

Payload

{
  selection: PdfSelection | null;
}

Payload fields

FieldTypeRequired
selectionPdfSelection | nullYes

Subscription example

function onEvent(payload) {
  console.log('selectionChange', payload);
}

instance.on('selectionChange', onEvent);
instance.off('selectionChange', onEvent);