BasicCard 類別
基本卡片。
建構函式
BasicCard(*, title: str = None, subtitle: str = None, text: str = None, images=None, buttons=None, tap=None, **kwargs)
參數
| 名稱 | Description |
|---|---|
|
title
必要
|
卡片的標題 |
|
subtitle
必要
|
卡片的副標題 |
|
text
必要
|
卡片的文字 |
|
images
必要
|
list[<xref:botframework.connector.models.CardImage>]
卡片的影像陣列 |
|
buttons
必要
|
list[<xref:botframework.connector.models.CardAction>]
適用於目前卡片的一組動作 |
|
tap
必要
|
<xref:botframework.connector.models.CardAction>
當用戶點選卡片本身時,將會啟動此動作 |
僅限關鍵字的參數
| 名稱 | Description |
|---|---|
|
title
必要
|
|
|
subtitle
必要
|
|
|
text
必要
|
|
|
images
必要
|
|
|
buttons
必要
|
|
|
tap
必要
|
|