LessonCommentObjects
Interfaces
LessonCommentObjectsProps
Indexable
[p: string]: any
Other props
Properties
| Property | Type | Description |
|---|---|---|
cacheStrategy? | CacheStrategies | Caching strategies Default CacheStrategies.CACHE_FIRST |
className? | string | Overrides or extends the styles applied to the component. Default null |
CommentComponentProps? | LessonCommentObjectProps | Props to spread to single comment object Default {} |
CommentObjectSkeletonProps? | any | Props to spread to single comment object skeleton Default {elevation: 0}, |
CommentsObjectSkeletonProps? | any | Props to spread to CommentsObjectSkeleton Default {} |
id? | string | Id of the LessonCommentObjects Default lesson_comments_object_lessonObjectId |
lessonObject? | SCCourseLessonType | Lesson object Default null |
lessonObjectId? | number | Id of lesson object Default null |
Functions
LessonCommentObjects()
LessonCommentObjects(
inProps):Element
API documentation for the Community-JS Comments Object component. Learn about the available props and the CSS API.
Import
import {LessonCommentObjects} from '@selfcommunity/react-ui';
Component Name
The name SCLessonCommentObjects can be used when providing style overrides in the theme.
CSS
| Rule Name | Global class | Description |
|---|---|---|
| root | .SCLessonCommentObjects-root | Styles applied to the root element. |
| pagination | .SCLessonCommentObjects-pagination | Styles applied to the pagination controls. |
| paginationLink | .SCLessonCommentObjects-pagination-link | Styles applied to the pagination link. |
| loadNextCommentsButton | .SCLessonCommentObjects-load-next-comments-button | Styles applied to the load next comments button. |
| loadPreviousCommentsButton | .SCLessonCommentObjects-load-previous-comments-button | Styles applied to the load previous comments button. |
| commentsCounter | .SCLessonCommentObjects-comments-counter | Styles applied to the comments counter element. |
Parameters
| Parameter | Type | Description |
|---|---|---|
inProps | LessonCommentObjectsProps |
Returns
Element
LessonCommentObjectsSkeleton()
LessonCommentObjectsSkeleton(
props):Element
API documentation for the Community-JS Comments Object Skeleton component. Learn about the available props and the CSS API.
Import
import {LessonCommentObjectsSkeleton} from '@selfcommunity/react-ui';
Component Name
The name SCLessonCommentObjects-skeleton-root can be used when providing style overrides in the theme.
CSS
| Rule Name | Global class | Description |
|---|---|---|
| root | .SCLessonCommentObjects-skeleton-root | Styles applied to the root element. |
Parameters
| Parameter | Type |
|---|---|
props | { count: number; } |
props.count? | number |
Returns
Element