Add custom metadata when comment is added
You have two options for adding comments with custom positioning metadata:Option A: Velt-Managed Click EventsOption B: Custom Click Event Handling
- Use the
onCommentAddprop of the VeltComments component to add custom metadata when a comment is added. - You need to set the mandatory
commentType: 'manual'property to the metadata object.
- React / Next.js
- Other Frameworks
- Handle click events on your canvas and use the
addManualCommentmethod to create a comment with custom metadata.
- React / Next.js
- Other Frameworks
Retrieve all Comment Annotations
Retrieve all
Comment Annotations using the useCommentAnnotations() hook.To learn more about the useCommentAnnotations() hook, read here.- React / Next.js
- Other Frameworks

