Interface: CommentObjectProps
CommentObject.CommentObjectProps
Indexable
▪ [p: string
]: any
Other props
Properties
CommentObjectReplyProps
• Optional
CommentObjectReplyProps: CardProps
Props to spread to single comment object CommentObjectReply
Default
{elevation: 0}
Defined in
packages/react-ui/src/components/CommentObject/CommentObject.tsx:167
CommentObjectSkeletonProps
• Optional
CommentObjectSkeletonProps: CardProps
Props to spread to single comment object skeleton
Default
{elevation: 0}
Defined in
packages/react-ui/src/components/CommentObject/CommentObject.tsx:161
CommentsObjectComponentProps
• Optional
CommentsObjectComponentProps: CommentsObjectProps
Props to spread to sub comments object
Default
{elevation: 0, WidgetProps: {variant: 'outlined'} as WidgetProps}
Defined in
packages/react-ui/src/components/CommentObject/CommentObject.tsx:173
cacheStrategy
• Optional
cacheStrategy: CacheStrategies
Caching strategies
Default
CacheStrategies.CACHE_FIRST
Defined in
packages/react-ui/src/components/CommentObject/CommentObject.tsx:185
className
• Optional
className: string
Overrides or extends the styles applied to the component.
Default
null
Defined in
packages/react-ui/src/components/CommentObject/CommentObject.tsx:70
commentObject
• Optional
commentObject: SCCommentType
Comment object
Default
null
Defined in
packages/react-ui/src/components/CommentObject/CommentObject.tsx:82
commentObjectId
• Optional
commentObjectId: number
Id of the comment object
Default
null
Defined in
packages/react-ui/src/components/CommentObject/CommentObject.tsx:76
commentReply
• Optional
commentReply: SCCommentType
comment to reply Used to initial open reply box for that comment
Default
null
Defined in
packages/react-ui/src/components/CommentObject/CommentObject.tsx:119
commentsOrderBy
• Optional
commentsOrderBy: SCCommentsOrderBy
comments orderBy
Default
SCCommentsOrderBy.ADDED_AT_DESC
Defined in
packages/react-ui/src/components/CommentObject/CommentObject.tsx:112
commentsPageCount
• Optional
commentsPageCount: number
comments per page (latest_comments)
Default
null
Defined in
packages/react-ui/src/components/CommentObject/CommentObject.tsx:106
feedObject
• Optional
feedObject: SCFeedObjectType
Feed object
Default
null
Defined in
packages/react-ui/src/components/CommentObject/CommentObject.tsx:94
feedObjectId
• Optional
feedObjectId: number
Id of feed object
Default
null
Defined in
packages/react-ui/src/components/CommentObject/CommentObject.tsx:88
feedObjectType
• Optional
feedObjectType: DISCUSSION
| POST
| STATUS
Type of feed object
Default
SCContributionType.POST
Defined in
packages/react-ui/src/components/CommentObject/CommentObject.tsx:100
linkableCommentDateTime
• Optional
linkableCommentDateTime: boolean
If datetime is linkable or not
Default
true
Defined in
packages/react-ui/src/components/CommentObject/CommentObject.tsx:179
onCollapsed
• Optional
onCollapsed: (comment
: SCCommentType
) => void
Type declaration
▸ (comment
): void
Callback on collapsed the comment
Parameters
Name | Type |
---|---|
comment | SCCommentType |
Returns
void
Default
null
Defined in
packages/react-ui/src/components/CommentObject/CommentObject.tsx:149
onDelete
• Optional
onDelete: (comment
: SCCommentType
) => void
Type declaration
▸ (comment
): void
Callback on delete the comment
Parameters
Name | Type |
---|---|
comment | SCCommentType |
Returns
void
Default
null
Defined in
packages/react-ui/src/components/CommentObject/CommentObject.tsx:137
onOpenReply
• Optional
onOpenReply: (comment
: SCCommentType
) => void
Type declaration
▸ (comment
): void
Callback on open reply box
Parameters
Name | Type |
---|---|
comment | SCCommentType |
Returns
void
Default
null
Defined in
packages/react-ui/src/components/CommentObject/CommentObject.tsx:125
onRestore
• Optional
onRestore: (comment
: SCCommentType
) => void
Type declaration
▸ (comment
): void
Callback on restore the comment
Parameters
Name | Type |
---|---|
comment | SCCommentType |
Returns
void
Default
null
Defined in
packages/react-ui/src/components/CommentObject/CommentObject.tsx:143
onVote
• Optional
onVote: (comment
: SCCommentType
) => void
Type declaration
▸ (comment
): void
Callback on vote the comment or a sub-comment (latest_comments)
Parameters
Name | Type |
---|---|
comment | SCCommentType |
Returns
void
Default
null
Defined in
packages/react-ui/src/components/CommentObject/CommentObject.tsx:131
truncateContent
• Optional
truncateContent: boolean
Show all summary initially (otherwise it will be truncated)
Default
false
Defined in
packages/react-ui/src/components/CommentObject/CommentObject.tsx:155