Chat button

Chat button with online status and unread count that opens a chatbox or inbox

Contents

Without unread messages

With unread messages (this is automatic)

Inputs
contextId : number
contextType : any
otherMemberIds : readonly number[]

Other members of the chat. The online indicator will use the first member in the list

buttonText ?: string = $localize`:Chat button (verb):Chat`
color ?: ButtonColor = ButtonColor.DEFAULT
disabled ?: boolean = false
display ?: ButtonDisplay = 'inline'
displayDesktop ?: ButtonDisplay
displayTablet ?: ButtonDisplay
fullWidth ?: boolean = false

By default the chat button has a fixed size, setting this to true fits the button to the container width

iconLabel ?: string
isIconOnly ?: boolean = false
showOnlineIndicator ?: boolean = true
size ?: ButtonSize = ButtonSize.SMALL

Size of the button. Automatically adjusts online indicator size.

threadType ?: any

Override thread type where the default value is PRIVATE if otherMembers length is 1 or GROUP if otherMembers length is greater than 1.