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
| Field | Type | Required |
|---|---|---|
selection | PdfSelection | null | Yes |
Subscription example
function onEvent(payload) {
console.log('selectionChange', payload);
}
instance.on('selectionChange', onEvent);
instance.off('selectionChange', onEvent);