ParticipantItemProps interface

Props for ParticipantItem.

Properties

displayName

Name of participant.

me

Optional indicator to show participant is the user.

menuItems

Optional array of IContextualMenuItem for contextual menu.

onClick

Optional callback when component is clicked

onRenderAvatar

Optional callback returning a JSX element to override avatar.

onRenderIcon

Optional callback returning a JSX element rendered on the right portion of the ParticipantItem. Intended for adding icons.

presence

Optional PersonaPresence to show participant presence. This will not have an effect if property avatar is assigned.

showParticipantOverflowTooltip

prop to determine if we should show tooltip for participants or not

strings

Optional strings to override in component

styles

Allows users to pass in an object contains custom CSS styles.

userId

Unique User ID of the participant. This userId is available in the onRenderAvatar callback function

Property Details

displayName

Name of participant.

displayName?: string

Property Value

string

me

Optional indicator to show participant is the user.

me?: boolean

Property Value

boolean

menuItems

Optional array of IContextualMenuItem for contextual menu.

menuItems?: IContextualMenuItem[]

Property Value

IContextualMenuItem[]

onClick

Optional callback when component is clicked

onClick?: (props?: ParticipantItemProps) => void

Property Value

(props?: ParticipantItemProps) => void

onRenderAvatar

Optional callback returning a JSX element to override avatar.

onRenderAvatar?: OnRenderAvatarCallback

Property Value

onRenderIcon

Optional callback returning a JSX element rendered on the right portion of the ParticipantItem. Intended for adding icons.

onRenderIcon?: (props?: ParticipantItemProps) => null | Element

Property Value

(props?: ParticipantItemProps) => null | Element

presence

Optional PersonaPresence to show participant presence. This will not have an effect if property avatar is assigned.

presence?: PersonaPresence

Property Value

PersonaPresence

showParticipantOverflowTooltip

prop to determine if we should show tooltip for participants or not

showParticipantOverflowTooltip?: boolean

Property Value

boolean

strings

Optional strings to override in component

strings?: Partial<ParticipantItemStrings>

Property Value

styles

Allows users to pass in an object contains custom CSS styles.

styles?: ParticipantItemStyles

Property Value

userId

Unique User ID of the participant. This userId is available in the onRenderAvatar callback function

userId?: string

Property Value

string