Customize Behavior
Threads
addCommentAnnotation
- Adds a new comment annotation.
- Params: AddCommentAnnotationRequest
- Returns: AddCommentAnnotationEvent
deleteCommentAnnotation
- Deletes a comment annotation
- Params: DeleteCommentAnnotationRequest
- Returns: DeleteCommentAnnotationEvent
addCommentOnSelectedText
By default, when you highlight over any text in textMode
a Comment Tool button will appear. Clicking the button will add a comment on the highlighted text.
If you want to trigger the comment using an API method call instead of clicking the button, you can do the following:
addCommentOnElement
Adds a Comment on a specific element by ID.
To add a comment on a specific element through an API method, use the addCommentOnElement()
method and pass in an object with the schema shows in the example:
addManualComment
- This feature is particularly useful for complex UIs where you need precise control over the placement of Comment Pins.
- Using this you can manually set the position of Comment Annotations.
- Handle click events on your canvas/document and use the this method to create a comment with custom metadata.
deleteSelectedComment
To delete a comment using an API method, use the deleteSelectedComment()
method.
getElementRefByAnnotationId
This will return the Xpath of the DOM element on which the comment was added.
getAllCommentAnnotations
To retreive all comments in the frontend, use the useCommentAnnotations()
hook. The hook will return an array that contains all current comments.
Whenever there is a change to the comments structure, the hook return value will be updated to the latest change.
The hook will automatically unsubscribe from the subscription when the component dismounts.
By default, useCommentAnnotations()
will return data for the current documentId
and location
.
If you pass in a documentId
as an argument, it will return all comments in the given documentId
.
If you pass in a documentId
as the first argument and a location
object as the second argument, it will return all comments in the given documentId
and location
.
getUnreadCommentAnnotationCountOnCurrentDocument
You can get the number of CommentAnnotations
that have at least 1 unread Comment
on the current Document
by using the useUnreadCommentAnnotationCountOnCurrentDocument()
hook:
getUnreadCommentAnnotationCountByLocationId
You can get the number of CommentAnnotations
with at least 1 unread Comment
by Location Id
by using the useUnreadCommentAnnotationCountByLocationId()
hook:
getSelectedComments
- Get the currently selected comment annotations.
- This returns an array of
CommentAnnotation
objects.
Unsubscribe from the subscription when you’re done:
getCommentAnnotationById
- Retrieve a specific comment annotation by its ID.
- By default, it will return the comment annotation for the current
documentId
. - If you pass in a
documentId
, it will return the comment annotation for the givendocumentId
.
Using Hooks:
Using API:
To unsubscribe from the subscription:
Messages
addComment
- Add a comment to a specific comment annotation
- Params: AddCommentRequest
- Returns: AddCommentEvent
updateComment
- Update a comment in a specific comment annotation
- Params: UpdateCommentRequest
- Returns: UpdateCommentEvent
deleteComment
- Delete a comment from a specific comment annotation
- Params: DeleteCommentRequest
- Returns: DeleteCommentEvent
getComment
- Get comments from a specific comment annotation
- Params: GetCommentRequest
- Returns: Comment[]
getUnreadCommentCountOnCurrentDocument
You can get the number of unread Comments
on the current Document
by using the useUnreadCommentCountOnCurrentDocument()
hook:
getUnreadCommentCountByLocationId
You can get the number of unread Comments
by Location Id
by using the useUnreadCommentCountByLocationId()
hook:
getUnreadCommentCountByAnnotationId
You can get the number of unread Comments
by annotation id by using the useUnreadCommentCountByAnnotationId()
hook:
@Mentions
updateContactList
- By default, the contact list is generated using the users in the organization and the document.
- However, if you do not want to use that feature or want to provide a custom list of contacts, you can use this method.
- By default, it will overwrite the current contact list. You can merge the provided contacts with the existing list by passing the merge flag as
{merge:true}
. - This method will only update the contact list in the current user session. It doens’t update the user contacts in the database or change the access control.
Using Hooks:
Using API:
updateContactListScopeForOrganizationUsers
- Sometimes you may want to show only certain types of contacts in the contact dropdown.
- By default, organization users will see all contacts in the organization, any user groups and any contacts added to the document.
- Using this method, you can restrict the contacts shown in the dropdown to only certain types.
- This only affects the Organization Users and not the Document Users. Document Users will always only see contacts added to the document.
Here are the available options:
all
: Show all the contactsorganization
: Show organization contacts.organizationUserGroup
: Show organization user groups.document
: Show document contacts.
assignUser
- Assigns a user to a comment annotation
- Params: AssignUserRequest
- Returns: AssignUserEvent
enableUserMentions
- This allows you to enable or disable user @mentions.
Whether user @mentions are enabled.
Default: true
Using Props:
Using Hooks:
Using API Method:
onContactSelected
- This event is triggered when a contact is selected from the contact dropdown in the Comment Dialog.
- Use the event object to determine if the selected contact has access to the document using fields like
isOrganizationContact
,isDocumentContact
anddocumentAccessType
. - If the selected contact doesn’t have access to the document, you can show an invite dialog to the user to invite the contact to the document.
The returned data will be in the following schema:
Using Hooks:
Using API:
enableAtHere
- This allows you to notify all the users explicitly added to the current document.
- It won’t notify users in the organization who are not explicitly added to the document.
Hooks:
API:
setAtHereLabel
- This allows you to modify the default text of the @here feature. eg: @all, @everyone, @team, etc.
Using Props:
Using Hooks:
Using API Method:
setAtHereDescription
- Customize the description that appears for the @here mention.
Using Props:
Using Hooks:
Using API Method:
subscribeCommentAnnotation
- Subscribes to a comment annotation
- Params: SubscribeCommentAnnotationRequest
- Returns: SubscribeCommentAnnotationEvent
unsubscribeCommentAnnotation
- Unsubscribes from a comment annotation
- Params: UnsubscribeCommentAnnotationRequest
- Returns: UnsubscribeCommentAnnotationEvent
Metadata
addContext
Custom metadata allows you to add extra information to comments, enhancing their functionality. Here’s what you can do with it:
- Render additional data on comments
- Position comment pins manually
- Create custom UI components
- Enable comment filtering on custom data
To add custom metadata, use the event.addContext()
method when a comment is added. This method accepts an object with key-value pairs.
updateContext
- Update the custom metadata associated with a comment annotation using the
updateContext
method. - Utilize this method to update the context of a comment annotation at any time. For example, you might use this when the name of the dashboard containing the comment annotation changes.
The commentElement.updateContext()
method accepts three parameters:
- The Comment Annotation ID
- The new metadata object
- An optional
updateContextConfig
object. Specify how the new metadata should be applied:{ merge: true }
: Merges the new metadata with the existing metadata{ merge: false }
or omitted: Replaces the existing metadata entirely (default behavior)
Using API:
Custom Lists
createCustomListDataOnAnnotation
- Add a custom dropdown list at the Comment Annotation level.
- Use this to add custom tags or categories to the comment.
Using Props:
API Method:
createCustomListDataOnComment
You can have custom dropdown lists appear when certain hotkeys
are pressed.
When you press a hotkey inside the Comment Dialog composer, it will open a dropdown list of items that you can select.
Selecting an item frop the dropdown list will add a chip that inside the comment text.
Set hotkey and list data
#
or /
- Create the list of data will be shown when the
hotkey
is pressed. Eg: When the user presses#
, the list of files or links from other parts of your app is shown. - The items in the list must be in the following schema:
Using Props:
API Method:
Listen to click event data on chips
- After the comment is saved, the item will be rendered as a chip on the comment content.
- When the user clicks on it, you will get an event callback with the data of the clicked chip (AutocompleteItem).
Event Subscription
on
- Subscribe to Comment Events.
- Here is the list of events you can subscribe to.
- Here is the list of objects you will receive in the callback.
Attachments
enableAttachments
Whether file attachments are enabled.
Default: true
When this is on, users can attach image files to their comments. Users can download or delete an attachment. Users can attach multiple files at once.
Currently we support .png
, .jpg
, .gif
(static & animated), .svg
file types up to 15MB per file.
addAttachment
- Add an attachment to a specific comment annotation
- Params: AddAttachmentRequest
- Returns: Promise<AddAttachmentResponse[]>
deleteAttachment
- Delete an attachment from a specific comment annotation
- Params: DeleteAttachmentConfig
- Returns: Promise<DeleteAttachmentEvent | null>
getAttachment
- Get attachments from a specific comment annotation
- Params: GetAttachmentRequest
- Returns: Promise<Attachment[]>
Reactions
enableReactions
Whether emoji reactions are enabled.
Default: true
setCustomReactions
- You can set custom reactions by passing a map that contains information about the reactions you want to add.
- The map keys should be the reaction ID, and the map value should contain an object with either an
url
,svg
, oremoji
field to represent the reaction icon you want to use.
addReaction
- Add a reaction to a specific comment annotation
- Params: AddReactionRequest
- Returns: Promise<AddReactionEvent | null>
deleteReaction
- Delete a reaction from a specific comment annotation
- Params: DeleteReactionRequest
- Returns: Promise<DeleteReactionEvent | null>
toggleReaction
- Toggle a reaction for a specific comment annotation
- Params: ToggleReactionRequest
- Returns: Promise<ToggleReactionEvent | null>
Status & Priority
enableStatus
Whether to enable the default status dropdown & filters.
Default: true
When this is on, users can assign a status to each comment & filter comment by status in the sidebar. You can customize the list of status options as shown below on this page.
API Method:
setCustomStatus
Set custom statuses in the customStatus
prop.
Default statuses: Open, In Progress, Resolved
With custom statuses, you can replace the default statuses with your own values. These statuses are also used in the comment sidebar to filter comments by status.
Setting the Status type using the type
property:
default
: This will be the default status assigned to each comment.ongoing
: This is treated as an intermediary status, you can add as many statuses with type ongoing as you want.terminal
: This represents a status that is completed. Comments with this status type are no longer shown in the DOM.
Setting the Status Icon using the svg
property:
- You can pass in a serialized SVG. We automatically parse and colorize SVGs. If instead you pass in an icon URL, you will have to colorize each icon yourself to match the status color.
API Method:
Make sure to have at least 2 categories set.
enableResolveButton
Whether to show resolve button on comments.
Default: true
This adds a tick mark button on the top right corner of the comment dialog. Clicking on this button will mark the comment as resolved.
API Method:
updateStatus
- Updates the status of a comment annotation.
- Params: UpdateStatusRequest
- Returns: UpdateStatusEvent
resolveCommentAnnotation
- Resolves a comment annotation
- Params: ResolveCommentAnnotationRequest
- Returns: ResolveCommentAnnotationEvent
enablePriority
Whether to enable setting priority on comments.
Default: false
When this is on, users can assign a priority to each comment & filter comment by priority in the sidebar. You can customize the list of priority options as shown later on this page in the Set Custom Priorities section.
API Method:
setCustomPriority
Pass custom priorities in the customPriority
prop.
Default priorities: P0, P1, P2
With custom priorities, you can replace the default priorities with your own values. These priorities are also used in the comment sidebar to filter comments by priority.
This will work if you have enabled the priority feature.
The color
property is used to set the priority pill background color.
The lightColor
property sets the background color of the filter.
API Method:
Make sure to have at least 2 categories set.
updatePriority
- Updates the priority of a comment annotation
- Params: UpdatePriorityRequest
- Returns: UpdatePriorityEvent
Recording
deleteRecording
- Delete a recording from a specific comment annotation
- Params: DeleteRecordingRequest
- Returns: Promise<DeleteRecordingEvent | null>
getRecording
- Get recordings from a specific comment annotation
- Params: GetRecordingRequest
- Returns: Promise<RecordedData[]>
setAllowedRecordings
Set the Recorder media options within Comments: (audio
, screen
, video
, all
).
audio
: enables audio recordingscreen
: enables screen recordingvideo
: enables video recordingall
: enables all recording options
Default: "audio"
enableRecordingCountdown
Whether the Recorder countdown is enabled.
Default: true
enableRecordingTranscription
Controls whether to enable AI transcription for recordings.
Default: enabled
Using Props:
Using API Methods:
Deep Link
getLink
- Get a link to a specific comment annotation
- Params: GetLinkRequest
- Returns: GetLinkResponse
copyLink
- Copy a link to a specific comment annotation to clipboard
- Params: CopyLinkRequest
- Returns: CopyLinkEvent
Navigation
scrollToCommentByAnnotationId
- This will scroll the page to the element directly. This will work if the element is present on the DOM.
selectCommentByAnnotationId
- Use this to programatically select a comment annotation by its id.
- Example: If the user opens a comment url from an email notification, you can use this open the comment dialog after your page has finished rendering.
onCommentSelectionChange
The useCommentSelectionChangeHandler
hook can be used to subscribe to Comment selection changes.
enablescrollToComment
Whether, users will be scrolled to the location of a Comment
when it is clicked.
Default: true
By default, users will be redirected to a Comment
if the comment id is provided in the url. But sometimes this experience is annoying, so we have provided a way to disable the option to automatically scroll users to the location of the Comment
.
To disable the feature, set scrollToComment
to false
.
API methods:
DOM Controls
allowedElementIds
allowedElementClassNames
allowedElementQuerySelectors
Provide a list of element DOM IDs, class names, or query selectors where commenting should be allowed.
Comments will be disabled for all other elements. Note, this does not impact Popover
mode.
Using Props:
Using API Method:
data-velt-comment-disabled
Disable certain elements from being commented on.
Add the data-velt-comment-disabled
attribute to elements where you want to disable commenting.
sourceId
- When you have multiple elements with the same DOM ID, you can use the
sourceId
attribute to control which element displays the comment dialog when adding a new comment. - By default, comments appear on all matching elements.
- This is useful in cases where you have multiple instances of the same data component on a page and want the comment to appear on each instance, such as Popover comments on a table.
- You can randomly generate the
sourceId
. It just needs to be unique for each element in the current session.
AI Categorization
enableAutoCategorize
Whether AI auto-categorization of comments is enabled.
Default: false
We use AI to analyze your comment content and auto-categorize it so users can filter comments easily. You can provide a list of custom categories that we should use to categorize the comments (shown below).
API Method:
setCustomCategory
Pass custom categories in the customCategory
prop.
Default categories: Question, Feedback, Bug, Other.
With custom categories, you can replace the default categories with your own values.
These categories are used in the Comments Sidebar
to filter comments by category. The AI autoCategorize
feature uses the list of categories to determine the closest category to choose from.
The input format to the customCategory
prop should be an array of objects with an id
, name
, and color
.
The color
property is used to set the category pill background color.
API Method:
Make sure to have at least 2 categories set.
UI
updateCommentDialogPosition
- Sometimes when you manually set the position of the Comment Pin, the Comment Dialog might not position itself near the pin in certain scenarios like scrolling, zooming the page when the comment dialog is open.
- Use this to manually trigger an update. The dialog will reposition itself near the pin.
You can add custom lists at two levels: a. on the CommentAnnotation and b. on the Comment.
enableSidebarButtonOnCommentDialog
Whether the Sidebar Button on Comment Dialogs show up.
Default: true
By Default, each Comment Dialog has a button at the bottom that will open the Comments Sidebar when clicked.
To disable it, you can set it to false:
Using Props:
Using API methods:
onSidebarButtonOnCommentDialogClick
Use this to act on clicks on the Sidebar Button at the bottom of the Comment Dialog.
Using Props:
Using Hooks:
Using API methods:
To unsubscribe from the subscription:
enableDeleteReplyConfirmation
You can enable a confirmation dialog before deleting a reply in comment threads. This feature helps prevent accidental deletions and improves user experience.
Using Props:
Using API:
enableMobileMode
Whether mobile mode is enabled.
When mobile mode is enabled and the screen width is small enough, comment windows will appear fixed to the bottom of the screen and full width instead of the usual popup window.
Default: false
API Method:
enableCommentPinHighlighter
Wheter the pin highlighter outline is enabled or not.
Default: true
API Methods:
composerMode
By default, the Composer
in the Comments Dialog
only shows the text input box and does not show the actions bar until the Composer
is clicked on or the user starts typing.
You can modify this behavior by setting the Composer Mode
prop to "expanded"
. This will make the actions bar always visible.
To keep the default behavior you can set the property to "default"
.
Default: "default"
showCommentsOnDom
Whether comments are shown on the DOM.
Default: true
By default, all the comments will be visible on DOM whenever we are able to detect to elements for that. But users can hide it from DOM if required.
There are 2 ways to show/hide comments on DOM:
Configuring attributes on the React Component:
Using API methods:
enableDialogOnHover
Whether the comment dialog shows on hover over the comment pin or the target element.
Default: true
API Method:
enableFloatingCommentDialog
Whether floating comment dialog is shown next to comment pin on hover or click.
Default: true
API Method:
showResolvedCommentsOnDom
Whether to show resolved comments on the DOM.
Default: false
API Methods:
enableCollapsedComments
You can control whether comments inside the annotation should be collapsed.
Default: true
Using Props:
Using API:
enableShortUserName
You can control whether long user names should be shortened. For long names, this will first create an initial of the second name and if the name is still long, it will truncate it with ellipses.
Default: true
Using Props:
Using API:
excludeLocationIds
Use this to filter out Comments at a specific Location for certain Users.
To reset it, you can pass an empty array:
enableSignInButton
Whether to enable Sign In button on comment dialog when user is anonymous or signed out.
Default: false
This allows anonymous or signed out users to still read the comments but encourages them to sign in if they want to respond to the comments.
API Method:
onSignIn
When the user clicks on the sign in button, we will emit an onSignIn
event that you can handle with your own sign in method.
No data is passed with the event.
Extra Information
enableCommentIndex
Whether comment index is enabled.
Default: false
This appears in the comment sidebar and on the comment pins. When this is on, we show a small icon indicating the comment index in the order of creation date. This enables users to find and navigate to the desired comment quickly.
API Method:
enableDeviceInfo
Whether device type indicator is enabled.
Default: false
When this is on, we show additional information in the Comment Thread
indicating which device the comment was created on. This is useful especially for design tools, where additional context is needed for debugging issues.
API Method:
enableDeviceIndicatorOnCommentPins
Whether the device type indicator on Comment Pins
is enabled.
Default: false
When this is on, we show a small device type icon on the Comment Pin
indicating which device the comment was created on. This is useful especially for design tools, where additional context is needed for debugging issues.
API Method:
enableGhostComments
Whether to show ghost comments on the DOM.
Default: false
Ghost comments are comments that were once linked to certain content on the DOM but that content is no longer available. If this is on, we display ghost comments in gray, close to where they were originally positioned on the DOM.
Using API methods:
enableGhostCommentsIndicator
Whether to show ghost comment labels in the comment sidebar.
Default: true
Ghost comments are always shown in the comments sidebar so that users can see the history of all comments. If this is on, we show a label on the comment in the sidebar indicating that the original content on which this comment was added is no longer available. This sets better expectations with the users.
Using API methods:
Special File Type Support
Iframe Container Support
- To enable comments on an iframe, add
data-velt-iframe-container="true"
to the iframe’s container element. - Note this will not insert the comments inside the contents of the iframe, but rather on top of the iframe.
data-velt-pdf-viewer
To support comments on top of a pdf viewer, add the data-velt-pdf-viewer="true"
attribute in the container element of the pdf viewer.
Keyboard Controls
enableHotkey
Whether Hotkeys are enabled or not. For now, the only hotkey supported is pressing c
to enable comment mode
.
Default: false
Using Props:
Using API Method:
enableEnterKeyToSubmit
- By default, pressing
enter
will add a new line and pressingshift
+enter
will submit a comment. - You can change this default behavior so that pressing
enter
will submit a comment by setting theenterKeyToSubmit
property totrue
.
Using Props:
Using API Method:
enableDeleteOnBackspace
- Use this to enable or disable deleting comments when backpsace key is pressed.
Default: enabled
Using Props:
Using API:
Moderation
enableModeratorMode
Whether comments require moderator approval.
Default: false
By default, when a user adds a comment it is visible to all authenticated users on the same document
. Moderator mode makes visibility of all comments private to only admin
users and the comment author. Admin users will see an approve button on the comment dialog. Once approved the comment will be visible to all users who can access the document
.
You can set some users as admin
by setting the isAdmin
property in the User object, during the identify()
call.
API Method:
enableResolveStatusAccessAdminOnly
- Restrict the resolve action to admin users and the comment author only.
Using props:
Using API:
approveCommentAnnotation
- Approves a comment annotation in moderator mode
- Params: ApproveCommentAnnotationRequest
- Returns: ApproveCommentAnnotationEvent
acceptCommentAnnotation
- Accepts a comment annotation in suggestion mode
- Params: AcceptCommentAnnotationRequest
- Returns: AcceptCommentAnnotationEvent
rejectCommentAnnotation
- Rejects a comment annotation in suggestion mode
- Params: RejectCommentAnnotationRequest
- Returns: RejectCommentAnnotationEvent
enableSuggestionMode
Whether to enable suggestion mode to accept or reject comments.
Default: false
To accept comments, set the suggestionMode
attribute to true
.
API Method:
updateAccess
- Updates access permissions for a comment annotation
- Params: UpdateAccessRequest
- Returns: UpdateAccessEvent
enablePrivateComments
- Private comment mode enables admin users to add comments that are only visible to other admin users.
- Use this to enable or disable private comment mode.
Default: false
To enable private comment mode, set the privateCommentMode
attribute to true
:
API Methods: API to enable/disable private comment mode:
enableReadOnly
Control whether comments are in read-only mode. When enabled, any features requiring user interaction (e.g., Composer, Reactions, Status) will be removed.
Default: false
Using Props:
Using API:
Comment Read Status
enableSeenByUsers
Control whether the “Seen By” feature is enabled for comments. When enabled, it shows which users have seen each comment.
Default: true
Using Props:
Using API:
setUnreadIndicatorMode
Whether verbose
mode is enabled for unread Comments
.
Default: 'minimal'
Unread Comments
can be in minimal
mode or verbose
mode.
In minimal
mode, a small red dot indicator appears for unread Comments
.
In verbose
mode, a larger badge with the text “UNREAD” will appear for unread Comments
.
API Method:
Toggle Comment Types
enableAreaComment
Area comments allows users to draw a rectangle and attach a comment to it. Use this to enable or disable area comments.
Default: true
Using Props:
Using API Method:
enableInboxMode
Whether Inbox Mode is enabled.
Default: false
Using Props:
Using API:
enablePopoverMode
Whether Popover Mode is enabled.
Default: false
Using API:
enableStreamMode
Whether Stream Mode is enabled.
Default: false
Using API:
enableTextMode
Whether Text Mode is enabled.
Default: true
Using Props:
Using API:
enableInlineCommentMode
Whether In-line comment mode is enabled.
When In-line comment mode is enabled, comments will appear under the text they are associated with in the DOM, instead of as a pop up window.
Default: false
enableMultithread
- By default comments are single threaded.
- You can make it multithreaded by setting
multiThread
prop totrue
. - If you had previously used a wireframe for the comment dialog, you will need to add the multithread wireframe.
- Default:
false
Comment Tool
enableCommentMode
Turns Comment mode on or off.
When you click on the comment tool, it turns on comment mode and user can attach comment to any element on the DOM. Using this method you can programatically turn on the commenting mode.
onCommentModeChange
The comment mode is toggled on and off when you click on the Comment Tool.
The useCommentModeState()
hook can be used to get the Comment mode without having to subscribe to changes. When the Comment mode changes, the hook return value will update.
The subscription is automatically unsubscribed when the component dismounts.
enableCommentTool
Whether the Comment Tool button is Enabled.
Default: true
When the Comment Tool is disabled, it can not be used to leave comments. Other ways to leave comments, such as highlighting text, will also be disabled.
Using Props:
Using API methods:
enableChangeDetectionInCommentMode
- By default, DOM Change Detection is disabled in Comment Mode for better performance.
- You can enable it to automatically reposition comment pins when the DOM changes while in Comment Mode.
Default: false
Using Props:
Using API Method:
enablePersistentCommentMode
- When Persistent comment mode is enabled, you can continue leave additional comments after finishing a comment.
- When it is disabled, you will need to reclick the Comment Tool every time when you want to make a comment.
Default: false
setPinCursorImage
You can set custom mouse cursor when the comment mode is on. The custom cursor image must be 32 x 32 pixels.
API Methods:
Minimap
enableMinimap
- The minimap shows a bar on the edge of the screen with indicators that show where comments exist.
- Use this to enable/disable the minimap. By default it’s disabled.
- It can be positioned
left
orright
. By default, it’s positioned on the right side of the screen.
Option a. Enable using config:
API Method:
Option b. Enable using Minimap Component: This offers greater flexibility to customize and position the minimap.
Inline Comments
sortData
- Change the default sorting order of Comments in the Inline Comments Section.
- Default:
none
There are three options for sorting:
asc
: Show comment annotations in ascending order of when they were last updateddesc
: Show comment annotations in descending order of when they were last updatednone
: Show comment annotations in the sequence they were added
multiThread
- By default inline comment section is multithreaded.
- You can make it single threaded by setting
multiThread
prop tofalse
. - Default:
true
Popover Comments
enableDialogOnTargetElementClick
Whether the comment dialog opens when target element is clicked. This is relevant only for Popover mode.
Default: true
API Method:
enablePopoverTriangleComponent
Whether the popover triangle appears when Popover Mode is enabled.
Default: true
API Method:
Comment Bubble
commentCountType
Whether to show unread or total comment replies count on Comment Bubble Component.
Default: 'total'
commentCountType
: This prop allows you to decide which count to display.
total
: Shows the total number of replies. (default)unread
: Shows the number of unread replies.
Video Timeline Comments
setTotalMediaLength
Set the total length of media (in frames or seconds) for the timeline.
Using Props:
Using API Method:
offset
- Allows comment bubbles to be positioned relative to both parent and child video clips by specifying an offset value.
- Default:
0
Comment Pin
enableBubbleOnPin
Show a Comment Bubble when user hovers or clicks on the Comment Pin vs showing the Comment Dialog. The comment dialog will open only on clicking the comment bubble.
Default: 'false'
Using Props:
Using API Method:
enableBubbleOnPinHover
Show a Comment Bubble when user hovers on the Comment Pin vs clicks on it.
Default: 'true'
Using Props:
Using API Method:
Was this page helpful?