Skip to main content

ActionItem

CometChatActionItem is a pre-defined structure for creating action that can be used to perform an action such as a button click or navigating a link.

Structure of CometChatActionItem

NameDescription
idUnique identifier for each action
titleHeading text for each action
titleFontSets all the different properties of font for the action text. Reference link
titleColorSets the foreground color of action text.
iconURLSets the asset URL of the icon for each action
iconTintSets the tint or color applied to each action
borderRadiusSets the border radius of the element
backgroundSets all background style properties at once, such as color, image, origin and size, or repeat method. Reference link
onClickMethod to be invoked when user clicks on each action