Constructor
| Name | Type | Description |
|---|---|---|
| receiverId | string | The ID of the receiver |
| receiverType | string | The type of the receiver |
| text | string | The text to be displayed on the card |
| cardActions | Button Element | The actions to be performed when the card is interacted with |
Class Usage
How to create an instance of the FormMessage class:- TypeScript
Key Properties and Methods
Image Url
The setImageUrl() method allows to set the image URL for the card.- TypeScript
Example
Below is an example that showcases the creation and manipulation of an instance of CardMessage:- TypeScript