CardAction interface

可单击的操作

属性

channelData

与此操作关联的特定于通道的数据

displayText

(单击按钮时,聊天源中显示的可选) 文本

image

将在文本标签旁边的按钮上显示的图像 URL

imageAltText

要用于替换字段的 image 备用图像文本

text

此操作的文本

title

按钮上显示的文本说明

type

此按钮实现的操作类型。 可能的值包括:“openUrl”、“imBack”、“postBack”、“playAudio”、“playVideo”、“showImage”、“downloadFile”、“signin”、“call”、“messageBack”、“openApp”

value

操作的补充参数。 此属性的内容取决于 ActionType

属性详细信息

channelData

与此操作关联的特定于通道的数据

channelData?: any

属性值

any

displayText

(单击按钮时,聊天源中显示的可选) 文本

displayText?: string

属性值

string

image

将在文本标签旁边的按钮上显示的图像 URL

image?: string

属性值

string

imageAltText

要用于替换字段的 image 备用图像文本

imageAltText?: string

属性值

string

text

此操作的文本

text?: string

属性值

string

title

按钮上显示的文本说明

title: string

属性值

string

type

此按钮实现的操作类型。 可能的值包括:“openUrl”、“imBack”、“postBack”、“playAudio”、“playVideo”、“showImage”、“downloadFile”、“signin”、“call”、“messageBack”、“openApp”

type: ActionTypes | string

属性值

ActionTypes | string

value

操作的补充参数。 此属性的内容取决于 ActionType

value: any

属性值

any