Forum Discussion
Use Video Cards in Health Bot using Web Chat
Hi,
Can we attach an array of Adaptive Cards using the Dynamic Card, to display as a Carousel?
I am trying to do something like below in a Dynamic Card, but it just displays empty cards in the carousel.
(function(){
var data = ${dataList};
var cards = data.map(function(item) {
return {
type: "AdaptiveCard",
$schema: "http://adaptivecards.io/schemas/adaptive-card.json",
version: "1.3",
body: [
{
type: "Container",
isVisible: true,
items: [
{
type: "Image",
style: "person",
url: item.imageUrl,
altText: item.imageAltText,
size: "medium"
},
{
type: "TextBlock",
text: item.title,
weight: "bolder",
size: "medium",
wrap: true
}
]
},
{
type: "ActionSet",
actions: [
{
type: "Action.OpenUrl",
title: "View Profile",
url: item.buttonUrl,
id: item.buttonId
}
]
}
]
}
});
return cards;
})();
Am I missing something here?
Thanks,
Abhilash