Controls visibility.
Invoked when the modal should close.
Participant Tools:
Updates the search query.
Initial count badge displayed in the header.
Optional
onCustom handler for muting selected participants.
Mutes a participant in a media session if the current member has the necessary permissions.
The options for muting participants.
Optional
showAlert?: ShowAlertOptional
onCustom direct message handler.
Sends a direct message to a participant if the current member has the necessary permissions.
The options for messaging participants.
Optional
showAlert?: ShowAlertmessageParticipants({
coHostResponsibility: [{ name: "chat", value: true }],
participant: { name: "John Doe", islevel: "1" },
member: "currentMember",
islevel: "2",
showAlert: (alert) => console.log(alert.message),
coHost: "coHostMember",
updateIsMessagesModalVisible: (isVisible) => setMessagesModalVisible(isVisible),
updateDirectMessageDetails: (participant) => setDirectMessageDetails(participant),
updateStartDirectMessage: (start) => setStartDirectMessage(start),
});
Optional
onCustom removal handler.
Render Overrides:
Removes a participant from the room if the user has the necessary permissions.
The options for removing a participant.
Optional
showAlert?: ShowAlertremoveParticipants({
coHostResponsibility: [{ name: "participants", value: true }],
participant: { id: "123", name: "John Doe", islevel: "1" },
member: "currentMember",
islevel: "2",
showAlert: (alert) => console.log(alert.message),
coHost: "coHostMember",
participants: [{ id: "123", name: "John Doe", islevel: "1" }],
socket,
roomName: "room1",
updateParticipants: (updatedParticipants) => console.log(updatedParticipants),
});
Optional
RenderComponent used for main participant rendering.
Optional
RenderComponent for overflow/other participants.
State Parameters:
Parameter bundle providing helpers and state access.
Customization:
Optional
backgroundModal surface color.
Optional
positionAnchor position.
Optional
styleAdditional styling applied to modal container.
Advanced Render Overrides:
Optional
renderOverride to replace the default modal body content.
Optional
renderOverride to replace the modal container wrapper.
Configuration options for the
ParticipantsModal
component.ParticipantsModalOptions
Modal Control: