How to Add a scroll bar to an adaptive card

二次信任 提交于 2019-12-11 18:44:53

问题


I m showing a list of users in a card, can I add a scrollbar to the card so that it fits the screen size? I am currently using Adaptive card 1.0 and sending this card to MS Teams.


回答1:


AdaptiveCards do not allow scrolling or paging.

If you want to implement paging you could add a "next page" button to your card, when pressed you just update the card with the new list data.

MS Teams allows you to update cards/message you already sent so you could send the first page and when a user clicks on the action button you sent the second page etc.




回答2:


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, depending on if it suits your needs.



来源:https://stackoverflow.com/questions/59175585/how-to-add-a-scroll-bar-to-an-adaptive-card

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!