CommentOptions
Options for managing Comments and Comment Threads in AdapTable
TypeScript
export interfaceProperties
| Property | Description | Default |
|---|---|---|
| dateFormat | Date Format string for Comments timestamp | 'dd-MM-yyyy HH:mm:ss' |
| isCellCommentable | Function to configure if a cell can contain Comments | |
| showPopupCloseButton | Show the Close Button in the Comments Popup | true |
Methods
| Method | Description |
|---|---|
| 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
| Parameter | Type |
|---|---|
| commentLoadContext | CommentLoadContext |
Returns
Promise<CommentThread[]>
persistCommentThreads
Persists the current Comment Threads
TypeScript
persistCommentThreads?(commentThreads: CommentThread[]): Promise<void>;Parameters
| Parameter | Type | Description |
|---|---|---|
| commentThreads | CommentThread[] |
Returns
Promise<void>