Options for managing Comments and Comment Threads in AdapTable

TypeScript
export interface

Properties

PropertyDescriptionDefault
dateFormatDate Format string for Comments timestamp'dd-MM-yyyy HH:mm:ss'
isCellCommentableFunction to configure if a cell can contain Comments
showPopupCloseButtonShow the Close Button in the Comments Popuptrue

Methods

MethodDescription
loadCommentThreads(commentLoadContext)Loads the Comment Threads
persistCommentThreads(commentThreads)Persists the current Comment Threads

Property Details

dateFormat

Date Format string for Comments timestamp

TypeScript
dateFormat?: string | (() => string);
Default Value

'dd-MM-yyyy HH:mm:ss'

Property Value

string | (() => string)

isCellCommentable

Function to configure if a cell can contain Comments

TypeScript
isCellCommentable?: (commentableCellContext: CommentableCellContext) => boolean;
Property Value

(commentableCellContext:CommentableCellContext) => boolean

showPopupCloseButton

Show the Close Button in the Comments Popup

TypeScript
showPopupCloseButton?: boolean;
Default Value

true

Property Value

boolean

Method Details

loadCommentThreads

Loads the Comment Threads

TypeScript
loadCommentThreads?(commentLoadContext: CommentLoadContext): Promise<CommentThread[]>;
Parameters
ParameterType
commentLoadContextCommentLoadContext
Returns

Promise<CommentThread[]>

persistCommentThreads

Persists the current Comment Threads

TypeScript
persistCommentThreads?(commentThreads: CommentThread[]): Promise<void>;
Parameters
ParameterTypeDescription
commentThreadsCommentThread[]
Returns

Promise<void>