Interface: AnnotationsBlurEvent

PSPDFKit.AnnotationsBlurEvent

This event is emitted whenever an annotation loses focus.

Use this event to add custom behavior like announcing the annotation value to screen readers.

Example

Log widget annotation new value

instance.addEventListener("annotations.blur", (event) => {
  if (event.formField) {
    console.log("new value " + event.formField.value);
  }
});

Members




Members

annotation: PSPDFKit.Annotations

The annotation that was focused. Remember that annotations are Immutable.map.

Type:

(nullable) formField: FormField

When the focused annotation is a WidgetAnnotation the event contains the FormField associated to it.

Type:
  • FormField

nativeEvent: Event

The browser event FocusEvent which caused the annotations.blur event to dispatch. Its type property is set to blur.

Type:
  • Event