<Canvas> Comments
Add comments to an HTML Canvas.
Import the VeltCommentPin component and the useCommentAnnotations() hook.
Import the VeltCommentPin
component and the useCommentAnnotations()
hook.
Add custom metadata when comment is added
Use the onCommentAdd
method to add custom metadata to a comment when a new comment is being added.
This metadata can be used later to set the position of the Comment Pin.
You need to set the mandatory commentType: 'manual'
property to the metadata object.
Retrieve all Comment Annotations
Retrieve all Comment Annotations
using the useCommentAnnotations()
hook.
To learn more about the useCommentAnnotations()
hook, read here.
Render the Velt Comment Pin component and set the position
Add the Velt Comment Pin
component and pass in the Comment Annotation Id
.
Now retrieve the context
to retrieve the custom metadata you set earlier and use it to set the position of the Comment Pin
.
Import the VeltCommentPin component and the useCommentAnnotations() hook.
Import the VeltCommentPin
component and the useCommentAnnotations()
hook.
Add custom metadata when comment is added
Use the onCommentAdd
method to add custom metadata to a comment when a new comment is being added.
This metadata can be used later to set the position of the Comment Pin.
You need to set the mandatory commentType: 'manual'
property to the metadata object.
Retrieve all Comment Annotations
Retrieve all Comment Annotations
using the useCommentAnnotations()
hook.
To learn more about the useCommentAnnotations()
hook, read here.
Render the Velt Comment Pin component and set the position
Add the Velt Comment Pin
component and pass in the Comment Annotation Id
.
Now retrieve the context
to retrieve the custom metadata you set earlier and use it to set the position of the Comment Pin
.
Add custom metadata when comment is added
Use the onCommentAdd
method to add custom metadata to a comment when a new comment is being added.
This metadata can be used later to set the position of the Comment Pin.
You need to set the mandatory commentType: 'manual'
property to the metadata object.
Retrieve all Comment Annotations
Retrieve all existing Comment Annotations
using the getAllCommentAnnotations()
method.
To learn more about the getAllCommentAnnotations
method, read here.
To unsubscribe from the subscription:
Render the Velt Comment Pin component and set the position
Add the Velt Comment Pin
component and pass in the Comment Annotation Id
.
Now retrieve the context
to retrieve the custom metadata you set earlier and use it to set the position of the Comment Pin
.