CollaborationUserColor
class
The color object used to generate specified CSS classes with an individual color number assigned to the user.
Properties
id : numberreadonlymodule:collaboration-core/users~CollaborationUserColor#idColor's unique id. Used as a part of the generated class names.
You can use this value to implement more color-related classes.
Methods
constructor( colorId )module:collaboration-core/users~CollaborationUserColor#constructorParameters
colorId : number
getBackgroundColorClass() → stringmodule:collaboration-core/users~CollaborationUserColor#getBackgroundColorClassReturns CSS class for user avatar background color.
Returns
string
getMarkerClass() → stringmodule:collaboration-core/users~CollaborationUserColor#getMarkerClassReturns CSS class for user caret position element (the pipe).
Returns
string
getSelectionClass() → stringmodule:collaboration-core/users~CollaborationUserColor#getSelectionClassReturns CSS class for user selection highlight (the selected range).
Returns
string