addManualComment
const commentElement = client.getCommentElement(); const config: ManualCommentAnnotationConfig = { context: {}, // your context here }; commentElement.addManualComment(config);
ManualCommentAnnotationConfig
export class ManualCommentAnnotationConfig { context?: any; }
onCommentClick
velt-comment-thread
<velt-comment-thread annotation-id="COMMENT_ANNOTATION_ID"></velt-comment-thread> <script> const commentThreadTag = document.querySelector("velt-comment-thread"); commentThreadTag.addEventListener('onCommentClick', (event) => { console.log('onCommentClick', event.detail); }); </script>
Was this page helpful?