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
Name | Description |
---|---|
id | Unique identifier for each action |
title | Heading text for each action |
titleFont | Sets all the different properties of font for the action text. Reference link |
titleColor | Sets the foreground color of action text. |
iconURL | Sets the asset URL of the icon for each action |
iconTint | Sets the tint or color applied to each action |
borderRadius | Sets the border radius of the element |
background | Sets all background style properties at once, such as color, image, origin and size, or repeat method. Reference link |
onClick | Method to be invoked when user clicks on each action |