Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
menu search
person
Welcome To Ask or Share your Answers For Others

Categories

Is there any way to be more specific with adaptive cards on mobile.

Here I'm using bot-framework with adaptive cards. More precisely, I am building table view in cards.

  • Looking for adding pagination in the table.
  • Adding scrolling in table.
question from:https://stackoverflow.com/questions/65617540/how-to-handle-adaptive-cards-with-mobile-view

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
929 views
Welcome To Ask or Share your Answers For Others

1 Answer

AdaptiveCards do not allow scrolling or paging.. But we can do with Carousel feature.Please check the below code:

{
   attachmentLayout: Attacenter code herehmentLayoutTypes.Carousel,
   attachments: [CardFactory.adaptiveCard()]
}

Other work Around Solution,

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.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
...