Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
913 views
in Technique[技术] by (71.8m points)

botframework - How to handle adaptive cards with mobile view

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

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

1 Reply

0 votes
by (71.8m points)

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.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...