如何向自适应卡片添加滚动条
How to Add a scroll bar to an adaptive card
我要在卡片中显示用户列表,我可以向卡片添加滚动条以使其适合屏幕大小吗?
我目前正在使用 Adaptive card 1.0 并将此卡发送给 MS Teams。
AdaptiveCards do not have the ability to specify scrolling. It would be up to the client to implement this functionality. However, you may be able to send a list card,看合不合你的需要。
AdaptiveCards 不允许滚动或分页。
如果你想实现分页,你可以在你的卡片上添加一个 "next page" 按钮,按下时你只需用新的列表数据更新卡片。
MS Teams 允许您更新 cards/message 您已经发送,这样您就可以发送第一页,当用户单击您发送第二页的操作按钮时,等等。
AdaptiveCards 无法指定 scrolling.But 我们可以使用 Carousel 功能。
{
attachmentLayout: Attacenter code herehmentLayoutTypes.Carousel,
attachments: [CardFactory.adaptiveCard()]
}
我要在卡片中显示用户列表,我可以向卡片添加滚动条以使其适合屏幕大小吗? 我目前正在使用 Adaptive card 1.0 并将此卡发送给 MS Teams。
AdaptiveCards do not have the ability to specify scrolling. It would be up to the client to implement this functionality. However, you may be able to send a list card,看合不合你的需要。
AdaptiveCards 不允许滚动或分页。
如果你想实现分页,你可以在你的卡片上添加一个 "next page" 按钮,按下时你只需用新的列表数据更新卡片。
MS Teams 允许您更新 cards/message 您已经发送,这样您就可以发送第一页,当用户单击您发送第二页的操作按钮时,等等。
AdaptiveCards 无法指定 scrolling.But 我们可以使用 Carousel 功能。
{
attachmentLayout: Attacenter code herehmentLayoutTypes.Carousel,
attachments: [CardFactory.adaptiveCard()]
}