Display Adaptive Card Carousels
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 25/100
- issue の種類
- バグ
- 明瞭さ
- 説明が足りない
- 活発さ
- 停滞
- 技術スタック
- javascript
- 領域
- frontend
調査の方向性
Issue に示されている Dynamic Card の設定と JavaScript のカルーセル例から始め、次に Adaptive Cards で空のカードの結果を再現します。Adaptive Card のペイロードを以前の Hero Card の設定と比較し、Carousel にマッピングされたカード内容を表示するか、サポートされている代替手段を文書化して、完了を確認します。
索引モデルが issue の本文から書いたものです。
説明
Hi,
I have been using Dynamic Card attached to a Statement in a Scenario to generate a list of Hero Cards and display them in a Carousel layout, which works fine.
I am now trying to switch the Hero Cards with Adaptive Cards but just seeing empty cards returned in the Carousel. Am I missing something or should I look for an alternate way of implementing this? Appreciate any pointers.
Below is what I have tried so far:
(function(){
var data = ${doctorsList};
var cards = data.map(function(item) {
return {
type: "AdaptiveCard",
version: "1.5",
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: "TextBlock",
text: item.subtitle,
weight: "bolder",
wrap: true,
isSubtle: true
},
{
type: "TextBlock",
text: item.location,
weight: "bolder",
wrap: true,
isSubtle: true
}
]
},
{
type: "ActionSet",
actions: [
{
type: "Action.OpenUrl",
title: "View Profile & Schedule",
url: item.buttonUrl,
id: item.buttonId
}
]
}
]
}
});
return cards;
})();
And below is what I had before inside the Dynamic Card:
(function(){
var doctors = [];
for (var i =0 ; i < ${doctors}.count; i++) {
doctors.push(new builder.HeroCard()
.title(${doctors}._result[i].title)
.subtitle(${doctors}._result[i].specialty)
.text(${doctors}._result[i].location)
.images([builder.CardImage.create(session,${doctors}._result[i].image_url)])
.buttons([builder.CardAction.openUrl(session,${doctors}._result[i].url,'View Profile')])
);
}
return doctors;
})()
- 主要言語
- JavaScript
- スター
- 114
- フォーク
- 238
- 平均マージ
- 5分
- マージ済み PR(30日)
- 2
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
microsoft/HealthBotContainerSample のほかの issue
-
難易度 4/5 3〜5日 初心者へのやさしさ 25/100
-
難易度 3/5 1〜2日 初心者へのやさしさ 25/100
-
難易度 3/5 1〜2日 初心者へのやさしさ 10/100
microsoft/HealthBotContainerSample#134 · コメント 1 件 ·
-
難易度 1/5 1時間未満 初心者へのやさしさ 45/100
-
Unable to connect オープン
難易度 4/5 3〜5日 初心者へのやさしさ 25/100
microsoft/HealthBotContainerSample の issue をすべて見る
似ている issue
-
area/install-update comp/cli comp/desktop P3 sweeper:risk-compatibility type/bug
難易度 2/5 1〜3時間 初心者へのやさしさ 86/100
NousResearch/hermes-agent#122386 · コメント 1 件 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
-
security
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
IBM/node-sdk-core#373 ·
-
docs web/
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100