ReferenceIsEditableAnnotationCallback
Type Alias IsEditableAnnotationCallback
Type Alias
Type Signature
Example
Only allow the modification of annotations from the same author
NutrientViewer.load({
isEditableAnnotation: function(annotation) {
return annotation.creatorName === myCurrentUser.name;
},
});
Type Declaration
Parameters
annotationAnnotationsUnion
The annotation.
Returns
boolean
This callback defines which annotations are read-only. This callback will receive the Annotation a user wants to modify and by returning
trueorfalseyou can define if the annotation should be read-only (false) or modifiable (true).For more information, see Configuration#isEditableAnnotation.