Skip to main content

Meeting Message

Meeting Message Component

Message announcing the meetings can be defined.

BNet Department
Detaysoft Daily
Kursat, Emre
Emre
just now
Team Lead
Kursat
just now
Junior Developer

Example Usage

import { MeetingMessage } from "react-chat-elements";

<MeetingMessage
subject="Example Meeting Message"
title="Meeting Message"
date={new Date()}
dateString={new Date().toDateString}
collapseTitle="Info"
participants={
[
{
id: '1',
title: 'Esra'
},
{
id: '2',
title: 'Abdurrahman'
},
]
}
dataSource={
[
{
id: '1',
avatar: 'https://avatars.githubusercontent.com/u/53093667?s=100&v=4',
message: "Frontend Developer",
title: 'Esra',
avatarFlexible: true,
date: new Date(),
},
{
id: '1',
avatar: 'https://avatars.githubusercontent.com/u/15075759?v=4',
message: "Solution Architect",
title: 'Abdurrahman',
avatarFlexible: true,
date: new Date(),
}
]
}
/>

Result

Example Meeting Message
Meeting Message
Esra, Abdurrahman
Esra
just now
Frontend Developer
Abdurrahman
just now
Solution Architect

Meeting Message with Message Box

import { MessageBox } from "react-chat-elements";

<MessageBox
type="meeting"
subject="Example Meeting Message"
title="Meeting Message"
date={new Date()}
dateString={new Date().toDateString}
collapseTitle="Info"
participants={
[
{
id: '1',
title: 'Esra'
},
{
id: '2',
title: 'Abdurrahman'
},
]
}
dataSource={
[
{
id: '1',
avatar: 'https://avatars.githubusercontent.com/u/53093667?s=100&v=4',
message: "Frontend Developer",
title: 'Esra',
avatarFlexible: true,
date: new Date(),
},
{
id: '1',
avatar: 'https://avatars.githubusercontent.com/u/15075759?v=4',
message: "Solution Architect",
title: 'Abdurrahman',
avatarFlexible: true,
date: new Date(),
}
]
}
/>

Result

Meeting Message
Example Meeting Message
Meeting Message
Esra, Abdurrahman
Esra
just now
Frontend Developer
Abdurrahman
just now
Solution Architect

Meeting Message Props (extends IMessage)

propdefaulttypedescription
subjectnonestringMeeting messagee
titlenonestringMeeting title
datenew Date()DateMeeting date
dateStringnonestringMeeting date string
collapseTitlenonestringMeeting subtitle
participants[]arrayMeeting participants array (see details below)
participantsLimitnonenumberMeeting participants count limit
moreItemsnonearraymessage more items (see details below)
dataSource[]arraymeeting list array (see details below)
onClicknonefunctionmeeting message on click event (message(object) is returned)
onMeetingTitleClicknonefunctionmeeting title message on click event (message(object) is returned)
onMeetingVideoLinkClicknonefunctionmeeting video link message on click event (message(object) is returned)
onMeetingMoreSelectnonefunctionmessage list item onMeetingMoreSelect event, gets 3 parameters: message item, index of item, event

MeetingMessage participants Props

propdefaulttypedescription
idnonenumber | stringparticipant id
titlenonestringparticipant title

MeetingMessage moreItems Props

propdefaulttypedescription
textnonestringMeetingMessage (dropdown) text
iconnoneobjectMeetingMessage (dropdown) icon (see details below)

MeetingMessage (Dropdown) Items Icon Props

propdefaulttypedescription
floatnonestringicon style float
colornonestringicon color
size12numberfont size
componentnoneReactChildicon component

MeetingMessage dataSource Props

propdefaulttypedescription
messagenonestringMeetingMessage message of data
avatarnonestringMeetingMessage avatar
datenonenumber | DateMeetingMessage date
dateStringnonestringMeetingMessage dateString
titlenonestringMeetingMessage title
eventnoneobjectMeetingMessage event object (see details below)
recordnoneobjectMeetingMessage record object (see details below)

MeetingMessage dataSource event Props

propdefaulttypedescription
titlenonestringevent title
avatarsnonearrayAvatar component props (see Avatar docs)
avatarsLimitnoneanyevent avatarsLimit

MeetingMessage dataSource record Props

propdefaulttypedescription
avatarnonestringrecord avatar path
titlenonestringrecord title
savedBynonestringrecord savedBy
timenonestringrecord time

IMessage Props

propsdefaulttypedescription
idnonestring | numbermessage id
positionnonestringmessage position
textnonestringmessage text
titlenonestringmessage title
focusnonebooleanmessage focus
datenonenumber | Datemessage date
dateStringnonestringmessage date string
avatarnonestringmessage avatar
titleColornonestringmessage title color
forwardednonebooleanmessage forwarded
replyButtonnonebooleanmessage reply button
removeButtonnonebooleanmessage remove button
statusnone'waiting'| 'sent' | 'received' | 'read'message status
statusTitlenonestringmessage status title
notchnonebooleanmessage notch
copiableDatenonebooleanmessage copiable date
retractednonebooleanmessage retracted
classNamenonestringmessage className
letterItemnoneobjectmessage letterItem contains id:string, letter:ReactChild
replynoneobject | anymessage reply should be both any and object (contains message:string, photoURL:string)
typenonestringmessage type