enableDefaultElementsTracking
-
When enabled,
- the SDK will track User’s presence on these elements types automatically:
input,textarea,button,contenteditable. - to disable tracking on certain elements, you need to manually add an attribute
data-velt-live-selection-enabled="false"to those elements.
- the SDK will track User’s presence on these elements types automatically:
-
When disabled,
- the SDK will not track User’s presence on any elements.
- to enable tracking on certain elements, you need to manually add an attribute
data-velt-live-selection-enabled="true"to those elements.
-
Default:
Enabled.
- React / Next.js
- Other Frameworks
enableUserIndicator
- User indicator is the user avatar or their name label that appears on the top left or top right of the selected element.
- Default:
Enabled.
- React / Next.js
- Other Frameworks
setUserIndicatorPosition
-
User indicator position can be set to
startorend. - You can set it globally using API or set it locally on individual elements using attributes.
-
Default:
end.
- React / Next.js
- Other Frameworks
Set globally using API:Set locally on individual elements using attributes:
setUserIndicatorType
-
User indicator type can be set to
avatarorlabel.avatar: Displays the user avatar.label: Displays the user’s name.
- You can set the type globally using API or set it locally on individual elements using attributes.
-
Default:
avatar.
- React / Next.js
- Other Frameworks
Set globally using API:Set locally on individual elements using attributes:
getLiveSelectionData
-
Get the live selection data for the current document.
- React / Next.js
- Other Frameworks
Using Hook:Using API:

