通过


ICardAction interface

点击卡片、按钮或图像时应执行的操作。

属性

channelData

(可选)与此操作关联的通道特定数据。

displayText

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

image

(可选)显示按钮操作的图片。 并非所有通道都支持按钮图像。

text

(可选)此操作的文本。

title

按钮操作的文本说明。

type

定义此按钮实现的操作类型。 并非所有操作类型都受所有通道支持。

value

操作的参数。 此属性的内容取决于操作类型。

属性详细信息

channelData

(可选)与此操作关联的通道特定数据。

channelData?: any

属性值

any

displayText

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

displayText?: string

属性值

string

image

(可选)显示按钮操作的图片。 并非所有通道都支持按钮图像。

image?: string

属性值

string

text

(可选)此操作的文本。

text?: string

属性值

string

title

按钮操作的文本说明。

title?: string

属性值

string

type

定义此按钮实现的操作类型。 并非所有操作类型都受所有通道支持。

type: string

属性值

string

value

操作的参数。 此属性的内容取决于操作类型。

value: string

属性值

string