Frontend APIs
Cursors
getOnlineUsersOnCurrentDocument()
Subscribe to cursors of all online users who are either active or inactive on the current document.
- Signature:
getOnlineUsersOnCurrentDocument: () => Observable<CursorUser[] | null>
- Params: none
- Returns:
Observable<CursorUser[] | null>
setInactivityTime()
This method sets the inactivity time in milliseconds.
- Signature:
setInactivityTime: (milliseconds: number) => void;
- Params:
milliseconds: number
- Returns:
void
allowedElementIds()
To allow cursors in specific elements only.
- Signature:
allowedElementIds: (elementIds: string[]) => any
- Params:
elementIds: string[]
- Returns:
any
Was this page helpful?