Movatterモバイル変換


[0]ホーム

URL:


Skip to main content

This browser is no longer supported.

Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.

Download Microsoft EdgeMore info about Internet Explorer and Microsoft Edge
Table of contentsExit focus mode

Getting started - JavaScript

  • 2020-01-16
Feedback

In this article

As we described inGetting Started page, an Adaptive Card is a JSON-serialized card object model. This is a JavaScript SDK for generating client-side HTML in the browser.

Install

Node

npm install

npm install adaptivecards

CDN

<script src="https://unpkg.com/adaptivecards/dist/adaptivecards.js"></script>

Usage

Import the module

// import the moduleimport * as AdaptiveCards from "adaptivecards";// or require itvar AdaptiveCards = require("adaptivecards");// or use the global variable if loaded from CDNAdaptiveCards.renderCard(...);

Next steps

SeeRender a card for the next steps!

In this article