Skip to main content

ActionsIcon

CometChatActionsIcon is a pre-defined structure for creating actions that the user can perform on a message with an icon representation.

Structure of ActionsIcon

NameTypeType
idstringUnique identifier for the message action
titlestringHeading text for the message action
iconURLstringAsset URL for the icon to symbolize a message action
iconTintstringColor applied to the icon of a message action
titleFontstringSets all the different properties of font for the action title text
titleColorstringSets the foreground color of action title text
backgroundColorstringColor applied to the background of the message action
onClick(id:number)=> voidFunction invoked when user clicks on the message action.