Shows only the annotations for which filter returns true in the notes list. Pass null to cancel.
filter
The filter function, or null.
null
// Show only the current user's annotationsconst user = instance.Core.annotationManager.getCurrentUser();instance.UI.setCustomNoteFilter(annotation => annotation.Author === user); Copy
// Show only the current user's annotationsconst user = instance.Core.annotationManager.getCurrentUser();instance.UI.setCustomNoteFilter(annotation => annotation.Author === user);
Shows only the annotations for which
filterreturns true in the notes list. Pass null to cancel.