DetailsOption
CometChatDetailsOption is a pre-defined structure for creating option within a DetailsTemplate in the CometChatDetails
component.
Structure of CometChatDetailsOption
Name | Type | Description |
---|---|---|
id | string | Identifier for the template option |
title | string | Heading text for the template option |
tail | view | User-defined UI component to customise the trailing view for each option in a template. |
customView | view | User-defined UI component to override the default view for the option. |
onClick | (user:CometChat.User => void) | Function invoked when user clicks on the option. |
titleFont | string | Sets all the different properties of font for the title text |
titleColor | string | Sets the foreground color of title text |
iconURL | string | Asset URL for the icon to symbolize an option |
iconTint | string | Color applied to the icon of the option |
backgroundColor | string | Color applied to the background of the option |