Events

textLine.press

Detailed viewer event reference for textLine.press.

Summary

  • Category: Text Line
  • Event: textLine.press
  • Trigger: Fires when a text line is pressed.

Payload

[{ line: TextLine; 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('textLine.press', payload);
}

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