Skip to main content

PrivateMessageComponent

Interfaces

PrivateMessageComponentProps

Indexable

[p: string]: any

Any other properties

Properties

PropertyTypeDescription
id?string | numberThread receiver id Default null
onItemClick?(id, type) => voidHandler on message click Default null
onSingleMessageOpen?(id) => voidHandler on single message open Default null
onThreadBack?() => voidHandler on thread back Default null
type?SCPrivateMessageTypeThread type Default null

Functions

PrivateMessageComponent()

PrivateMessageComponent(inProps): Element

API documentation for the Community-JS Private Messages component. Learn about the available props and the CSS API.

This component renders the private messages section. Take a look at our demo component here

Import

import {PrivateMessageComponent} from '@selfcommunity/react-ui';

Component Name

The name SCPrivateMessageComponent can be used when providing style overrides in the theme.

CSS

Rule NameGlobal classDescription
root.SCPrivateMessageComponent-rootStyles applied to the root element.
snippetsBox.SCPrivateMessageComponent-snippets-boxStyles applied to the snippets box element.
threadBox.SCPrivateMessageComponent-thread-boxStyles applied to the thread box element.
hide.SCPrivateMessageComponent-hideStyles applied to the snippetBox or threadBox grid item element on mobile view.

Parameters

ParameterTypeDescription
inPropsPrivateMessageComponentProps

Returns

Element


PrivateMessageComponentSkeleton()

PrivateMessageComponentSkeleton(props): Element

API documentation for the Community-JS Private Messages Skeleton Template. Learn about the available props and the CSS API.

Import

import {PrivateMessageComponentSkeleton} from '@selfcommunity/react-templates';

Component Name

The name SCPrivateMessageComponentSkeleton can be used when providing style overrides in the theme.

CSS

Rule NameGlobal classDescription
root.SCPrivateMessageComponent-skeleton-rootStyles applied to the root element.
snippetsSection.SCPrivateMessageComponent-snippets-sectionStyles applied to the snippets section
threadSection.SCPrivateMessageComponent-thread-sectionStyles applied to the thread section

Parameters

ParameterType
propsPrivateMessageComponentProps

Returns

Element