How to disable annotation reply for a single annotation

Product: Webviewer

Product Version: 7.3.3

Disable annotation reply for a single annotation

Hey guys, is there a way to disable annotation reply for a single annotation? Found out in the documentation is possible to disable them for all annotations based on a function or type using the function disableReplyForAnnotations(isReplyDisabled) as per example:

WebViewer(...)
  .then(function(instance) {
    // disable reply for all Freehand annotations
    instance.disableReplyForAnnotations(function(annotation) {
      return annotation instanceof instance.Annotations.FreeHandAnnotation;
    });
  });

Thanks

HI,

You can use the API you mentioned to disable a single annotation, for example if you know the id of an annotation, you can compare the annotation id in the callback function parameter.

Wanbo