TTMSFNCCloudWhatsAppTemplateComponents.AddComponent Method
Adds a component section to the collection.
API unit family: TMSFNCCloudWhatsApp
Declaring type: TTMSFNCCloudWhatsAppTemplateComponents
Syntax
function AddComponent(AType: TTMSFNCCloudWhatsAppTemplateComponentType; AButtonIndex: Integer = -1): TTMSFNCCloudWhatsAppTemplateComponent;
Parameters
| Name | Description |
|---|---|
AType |
The section type for the new component. |
AButtonIndex |
Zero-based button index. Pass -1 for non-button components. |
Returns
The component entry that was added.